Interface RequestListener
-
- All Superinterfaces:
EventListener
- All Known Implementing Classes:
TransactionCleanupListener
public interface RequestListener extends EventListener
RequestListeneris 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.AppEngineWebAppContextis 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 voidrequestComplete(org.eclipse.jetty.webapp.WebAppContext context, org.eclipse.jetty.server.Request request)Called when a request exits the AppEngine context for the last time.voidrequestReceived(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.ServletExceptionCalled 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 requestrequest- The jetty request object.- Throws:
IOExecption- if a problem with IOjavax.servlet.ServletException- for all other problemsIOException
-
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 requestrequest- The jetty request object.
-
-