javax.servlet
Interface AsyncContext


public interface AsyncContext

Since:
Servlet 3.0 $Id: AsyncContext.java 827435 2009-10-20 13:41:59Z markt $ TODO SERVLET3 - Add comments

Field Summary
static String ASYNC_CONTEXT_PATH
           
static String ASYNC_PATH_INFO
           
static String ASYNC_QUERY_STRING
           
static String ASYNC_REQUEST_URI
           
static String ASYNC_SERVLET_PATH
           
 
Method Summary
 void addListener(AsyncListener listener)
           
 void addListener(AsyncListener listener, ServletRequest request, ServletResponse response)
           
 void complete()
           
<T extends AsyncListener>
T
createListener(Class<T> clazz)
           
 void dispatch()
           
 void dispatch(ServletContext context, String path)
           
 void dispatch(String path)
           
 ServletRequest getRequest()
           
 ServletResponse getResponse()
           
 long getTimeout()
           
 boolean hasOriginalRequestAndResponse()
           
 void setTimeout(long timeout)
           
 void start(Runnable run)
           
 

Field Detail

ASYNC_REQUEST_URI

static final String ASYNC_REQUEST_URI
See Also:
Constant Field Values

ASYNC_CONTEXT_PATH

static final String ASYNC_CONTEXT_PATH
See Also:
Constant Field Values

ASYNC_PATH_INFO

static final String ASYNC_PATH_INFO
See Also:
Constant Field Values

ASYNC_SERVLET_PATH

static final String ASYNC_SERVLET_PATH
See Also:
Constant Field Values

ASYNC_QUERY_STRING

static final String ASYNC_QUERY_STRING
See Also:
Constant Field Values
Method Detail

getRequest

ServletRequest getRequest()

getResponse

ServletResponse getResponse()

hasOriginalRequestAndResponse

boolean hasOriginalRequestAndResponse()

dispatch

void dispatch()
Throws:
IllegalStateException

dispatch

void dispatch(String path)
Parameters:
path -
Throws:
IllegalStateException

dispatch

void dispatch(ServletContext context,
              String path)
Parameters:
context -
path -
Throws:
IllegalStateException

complete

void complete()

start

void start(Runnable run)

addListener

void addListener(AsyncListener listener)

addListener

void addListener(AsyncListener listener,
                 ServletRequest request,
                 ServletResponse response)

createListener

<T extends AsyncListener> T createListener(Class<T> clazz)
                                       throws ServletException
Throws:
ServletException

getTimeout

long getTimeout()

setTimeout

void setTimeout(long timeout)

(Built by coreservlets)

As of July 2010, there were no online versions of the servlet 3.0, JSP 2.2, and EL 2.2 Javadocs, except as part of the huge Java EE 6 API. So, I built them myself from the Tomcat 7 source code.

Java EE TutorialsJava EE Training