DRAFT

javax.servlet
Class AsyncEvent

java.lang.Object
  extended by javax.servlet.AsyncEvent

public class AsyncEvent
extends java.lang.Object

Event that gets fired when a ServletRequest on which asynchronous processing was started has finished processing through a call to AsyncContext#complete or has timed out.

Since:
Servlet 3.0

Constructor Summary
AsyncEvent(ServletRequest request, ServletResponse response)
          Constructs an AsyncEvent from the given request and response objects.
 
Method Summary
 ServletRequest getRequest()
          Gets the ServletRequest from this event
 ServletResponse getResponse()
          Gets the ServletResponse from this event
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsyncEvent

public AsyncEvent(ServletRequest request,
                  ServletResponse response)
Constructs an AsyncEvent from the given request and response objects.

Parameters:
request - the ServletRequest
response - the ServletResponse
Method Detail

getRequest

public ServletRequest getRequest()
Gets the ServletRequest from this event

Returns:
the ServletRequest

getResponse

public ServletResponse getResponse()
Gets the ServletResponse from this event

Returns:
the ServletResponse

DRAFT

Submit a bug or feature

Copyright © 2009 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.