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 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 Details

  • Constructor Details

    • TemplateExceptionListener

      public TemplateExceptionListener()
  • Method Details

    • 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