org.apache.catalina.core
Class AsyncContextImpl
java.lang.Object
org.apache.catalina.core.AsyncContextImpl
- All Implemented Interfaces:
- AsyncContext, AsyncContextCallback
public class AsyncContextImpl
- extends Object
- implements AsyncContext, AsyncContextCallback
- Author:
- fhanik
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sm
protected static final StringManager sm
AsyncContextImpl
public AsyncContextImpl(Request request)
complete
public void complete()
- Specified by:
complete
in interface AsyncContext
fireOnComplete
public void fireOnComplete()
- Specified by:
fireOnComplete
in interface AsyncContextCallback
timeout
public boolean timeout()
throws IOException
- Throws:
IOException
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,
ServletRequest request,
ServletResponse response,
boolean originalRequestResponse)
hasOriginalRequestAndResponse
public boolean hasOriginalRequestAndResponse()
- Specified by:
hasOriginalRequestAndResponse
in interface AsyncContext
doInternalDispatch
protected void doInternalDispatch()
throws ServletException,
IOException
- Throws:
ServletException
IOException
getTimeout
public long getTimeout()
- Description copied from interface:
javax.servlet.AsyncContext
- Get timeout in milliseconds. 0 or less indicates no timeout.
- Specified by:
getTimeout
in interface AsyncContext
setTimeout
public void setTimeout(long timeout)
- Description copied from interface:
javax.servlet.AsyncContext
- Set timeout in milliseconds. 0 or less indicates no timeout.
- Specified by:
setTimeout
in interface AsyncContext
setErrorState
public void setErrorState(Throwable t)
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.