Class TemplateExceptionListener
- java.lang.Object
-
- ru.vyarus.guicey.gsp.app.rest.support.TemplateExceptionListener
-
- All Implemented Interfaces:
org.glassfish.jersey.server.monitoring.ApplicationEventListener
@Provider @Singleton public class TemplateExceptionListener extends java.lang.Object implements org.glassfish.jersey.server.monitoring.ApplicationEventListenerApplication listener for template processing exceptions detection. Listener use request listener for template processing templates in order to detect exceptions.This listener doesn't detect direct not OK status return (e.g.
Response.status(404).build()), butTemplateErrorResponseFilterwill handle such cases.- Since:
- 24.01.2019
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringQUOTE
-
Constructor Summary
Constructors Constructor Description TemplateExceptionListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonEvent(org.glassfish.jersey.server.monitoring.ApplicationEvent event)org.glassfish.jersey.server.monitoring.RequestEventListeneronRequest(org.glassfish.jersey.server.monitoring.RequestEvent requestEvent)
-
-
-
Field Detail
-
QUOTE
public static final java.lang.String QUOTE
- See Also:
- Constant Field Values
-
-
Method Detail
-
onEvent
public void onEvent(org.glassfish.jersey.server.monitoring.ApplicationEvent event)
- Specified by:
onEventin interfaceorg.glassfish.jersey.server.monitoring.ApplicationEventListener
-
onRequest
public org.glassfish.jersey.server.monitoring.RequestEventListener onRequest(org.glassfish.jersey.server.monitoring.RequestEvent requestEvent)
- Specified by:
onRequestin interfaceorg.glassfish.jersey.server.monitoring.ApplicationEventListener
-
-