Apache Tomcat 7.0.2

org.apache.catalina.core
Class AsyncContextImpl

java.lang.Object
  extended by org.apache.catalina.core.AsyncContextImpl
All Implemented Interfaces:
AsyncContext

public class AsyncContextImpl
extends Object
implements AsyncContext

Author:
fhanik

Nested Class Summary
static class AsyncContextImpl.AsyncState
           
 
Field Summary
 
Fields inherited from interface javax.servlet.AsyncContext
ASYNC_CONTEXT_PATH, ASYNC_PATH_INFO, ASYNC_QUERY_STRING, ASYNC_REQUEST_URI, ASYNC_SERVLET_PATH
 
Constructor Summary
AsyncContextImpl(Request request)
           
 
Method Summary
 void addListener(AsyncListener listener)
           
 void addListener(AsyncListener listener, ServletRequest servletRequest, ServletResponse servletResponse)
           
 void complete()
           
<T extends AsyncListener>
T
createListener(Class<T> clazz)
           
 void dispatch()
           
 void dispatch(ServletContext context, String path)
           
 void dispatch(String path)
           
 void doInternalComplete(boolean error)
           
 void doInternalDispatch()
           
 ServletRequest getRequest()
           
 ServletResponse getResponse()
           
 ServletRequest getServletRequest()
           
 ServletResponse getServletResponse()
           
 AsyncContextImpl.AsyncState getState()
           
 long getTimeout()
           
 boolean hasOriginalRequestAndResponse()
           
 void init(ServletRequest request, ServletResponse response)
           
 boolean isCompleted()
           
 boolean isStarted()
           
 void recycle()
           
 void setCompleted()
           
 void setErrorState(Throwable t)
           
 void setHasOriginalRequestAndResponse(boolean hasOriginalRequestAndResponse)
           
 void setStarted(Context context)
           
protected  void setState(AsyncContextImpl.AsyncState st)
           
 void setTimeout(long timeout)
           
 void setTimeoutState()
           
 void start(Runnable run)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsyncContextImpl

public AsyncContextImpl(Request request)
Method Detail

complete

public void complete()
Specified by:
complete in interface AsyncContext

dispatch

public void dispatch()
Specified by:
dispatch in interface AsyncContext

dispatch

public void dispatch(String path)
Specified by:
dispatch in interface AsyncContext

dispatch

public void dispatch(ServletContext context,
                     String path)
Specified by:
dispatch in interface AsyncContext

getRequest

public ServletRequest getRequest()
Specified by:
getRequest in interface AsyncContext

getResponse

public ServletResponse getResponse()
Specified by:
getResponse in interface AsyncContext

start

public void start(Runnable run)
Specified by:
start in interface AsyncContext

addListener

public void addListener(AsyncListener listener)
Specified by:
addListener in interface AsyncContext

addListener

public void addListener(AsyncListener listener,
                        ServletRequest servletRequest,
                        ServletResponse servletResponse)
Specified by:
addListener in interface AsyncContext

createListener

public <T extends AsyncListener> T createListener(Class<T> clazz)
                                       throws ServletException
Specified by:
createListener in interface AsyncContext
Throws:
ServletException

recycle

public void recycle()

isStarted

public boolean isStarted()

setStarted

public void setStarted(Context context)

getServletRequest

public ServletRequest getServletRequest()

getServletResponse

public ServletResponse getServletResponse()

hasOriginalRequestAndResponse

public boolean hasOriginalRequestAndResponse()
Specified by:
hasOriginalRequestAndResponse in interface AsyncContext

setHasOriginalRequestAndResponse

public void setHasOriginalRequestAndResponse(boolean hasOriginalRequestAndResponse)

isCompleted

public boolean isCompleted()

setCompleted

public void setCompleted()

doInternalDispatch

public void doInternalDispatch()
                        throws ServletException,
                               IOException
Throws:
ServletException
IOException

doInternalComplete

public void doInternalComplete(boolean error)

getState

public AsyncContextImpl.AsyncState getState()

setState

protected void setState(AsyncContextImpl.AsyncState st)

getTimeout

public long getTimeout()
Specified by:
getTimeout in interface AsyncContext

setTimeout

public void setTimeout(long timeout)
Specified by:
setTimeout in interface AsyncContext

setTimeoutState

public void setTimeoutState()

setErrorState

public void setErrorState(Throwable t)

init

public void init(ServletRequest request,
                 ServletResponse response)

Apache Tomcat 7.0.2

Copyright © 2000-2010 Apache Software Foundation. All Rights Reserved.