@Provider
@Singleton
public class TemplateExceptionListener
extends java.lang.Object
implements org.glassfish.jersey.server.monitoring.ApplicationEventListener
This listener doesn't detect direct not OK status return (e.g. Response.status(404).build()), but
TemplateErrorResponseFilter will handle such cases.
| Constructor and Description |
|---|
TemplateExceptionListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
onEvent(org.glassfish.jersey.server.monitoring.ApplicationEvent event) |
org.glassfish.jersey.server.monitoring.RequestEventListener |
onRequest(org.glassfish.jersey.server.monitoring.RequestEvent requestEvent) |
public void onEvent(org.glassfish.jersey.server.monitoring.ApplicationEvent event)
onEvent in interface org.glassfish.jersey.server.monitoring.ApplicationEventListenerpublic org.glassfish.jersey.server.monitoring.RequestEventListener onRequest(org.glassfish.jersey.server.monitoring.RequestEvent requestEvent)
onRequest in interface org.glassfish.jersey.server.monitoring.ApplicationEventListener