Class 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.ApplicationEventListener
    Application 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()), but TemplateErrorResponseFilter will handle such cases.

    Since:
    24.01.2019
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String QUOTE  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onEvent​(org.glassfish.jersey.server.monitoring.ApplicationEvent event)  
      org.glassfish.jersey.server.monitoring.RequestEventListener onRequest​(org.glassfish.jersey.server.monitoring.RequestEvent requestEvent)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TemplateExceptionListener

        public TemplateExceptionListener()
    • Method Detail

      • onEvent

        public void onEvent​(org.glassfish.jersey.server.monitoring.ApplicationEvent event)
        Specified by:
        onEvent in interface org.glassfish.jersey.server.monitoring.ApplicationEventListener
      • onRequest

        public org.glassfish.jersey.server.monitoring.RequestEventListener onRequest​(org.glassfish.jersey.server.monitoring.RequestEvent requestEvent)
        Specified by:
        onRequest in interface org.glassfish.jersey.server.monitoring.ApplicationEventListener