Interface RequestListener

  • All Superinterfaces:
    EventListener
    All Known Implementing Classes:
    TransactionCleanupListener

    public interface RequestListener
    extends EventListener
    RequestListener is called for new request and request completion events. It is abstracted away from Servlet and/or Jetty API so that behaviours can be registered independently of servlet and/or jetty version. AppEngineWebAppContext is responsible for linking these callbacks and may use different mechanisms in different versions (Eg eventually may use async onComplete callbacks when async is supported).
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void requestComplete​(org.eclipse.jetty.webapp.WebAppContext context, org.eclipse.jetty.server.Request request)
      Called when a request exits the AppEngine context for the last time.
      void requestReceived​(org.eclipse.jetty.webapp.WebAppContext context, org.eclipse.jetty.server.Request request)
      Called when a new request is received and first dispatched to the AppEngine context.
    • Method Detail

      • requestReceived

        void requestReceived​(org.eclipse.jetty.webapp.WebAppContext context,
                             org.eclipse.jetty.server.Request request)
                      throws IOException,
                             javax.servlet.ServletException
        Called when a new request is received and first dispatched to the AppEngine context. It is only called once for any request, even if dispatched multiple times.
        Parameters:
        context - The jetty context of the request
        request - The jetty request object.
        Throws:
        IOExecption - if a problem with IO
        javax.servlet.ServletException - for all other problems
        IOException
      • requestComplete

        void requestComplete​(org.eclipse.jetty.webapp.WebAppContext context,
                             org.eclipse.jetty.server.Request request)
        Called when a request exits the AppEngine context for the last time. It is only called once for any request, even if dispatched multiple times.
        Parameters:
        context - The jetty context of the request
        request - The jetty request object.