public class AsyncContinuation extends Object implements AsyncContext, Continuation
| Modifier and Type | Class and Description |
|---|---|
class |
AsyncContinuation.AsyncEventState |
| Modifier and Type | Field and Description |
|---|---|
protected AbstractHttpConnection |
_connection |
ASYNC_CONTEXT_PATH, ASYNC_PATH_INFO, ASYNC_QUERY_STRING, ASYNC_REQUEST_URI, ASYNC_SERVLET_PATHATTRIBUTE| Modifier | Constructor and Description |
|---|---|
protected |
AsyncContinuation() |
| Modifier and Type | Method and Description |
|---|---|
void |
addContinuationListener(ContinuationListener listener) |
void |
cancel() |
protected void |
cancelTimeout() |
void |
complete() |
void |
dispatch() |
void |
dispatch(javax.servlet.ServletContext context,
String path) |
void |
dispatch(String path) |
protected void |
doComplete() |
protected void |
expired() |
AsyncContinuation.AsyncEventState |
getAsyncEventState() |
Object |
getAttribute(String name) |
Request |
getBaseRequest() |
ContextHandler |
getContextHandler() |
javax.servlet.ServletRequest |
getRequest() |
javax.servlet.ServletResponse |
getResponse() |
javax.servlet.ServletResponse |
getServletResponse() |
String |
getStatusString() |
long |
getTimeout() |
protected boolean |
handling() |
boolean |
hasOriginalRequestAndResponse() |
boolean |
isAsync() |
boolean |
isAsyncStarted() |
boolean |
isComplete() |
boolean |
isCompleting() |
boolean |
isDispatchable() |
boolean |
isExpired() |
boolean |
isInitial() |
boolean |
isResponseWrapped() |
boolean |
isResumed() |
boolean |
isSuspended() |
boolean |
isSuspending() |
protected void |
recycle() |
void |
removeAttribute(String name) |
void |
resume() |
protected void |
scheduleDispatch() |
protected void |
scheduleTimeout() |
void |
setAttribute(String name,
Object attribute) |
protected void |
setConnection(AbstractHttpConnection connection) |
void |
setTimeout(long ms) |
void |
start(Runnable run) |
void |
suspend() |
protected void |
suspend(javax.servlet.ServletContext context,
javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response) |
void |
suspend(javax.servlet.ServletResponse response) |
String |
toString() |
void |
undispatch() |
protected boolean |
unhandle()
Signal that the HttpConnection has finished handling the request.
|
protected AbstractHttpConnection _connection
protected void setConnection(AbstractHttpConnection connection)
public void addContinuationListener(ContinuationListener listener)
addContinuationListener in interface ContinuationaddContinuationListener in interface AsyncContextpublic void setTimeout(long ms)
setTimeout in interface ContinuationsetTimeout in interface AsyncContextpublic long getTimeout()
public AsyncContinuation.AsyncEventState getAsyncEventState()
public boolean isResponseWrapped()
isResponseWrapped in interface ContinuationContinuation.isResponseWrapped()public boolean isInitial()
isInitial in interface Continuationpublic boolean isSuspended()
isSuspended in interface Continuationpublic boolean isSuspending()
public boolean isDispatchable()
public String getStatusString()
protected boolean handling()
protected boolean unhandle()
public void dispatch()
dispatch in interface AsyncContextprotected void expired()
public void complete()
complete in interface Continuationcomplete in interface AsyncContextprotected void doComplete()
protected void recycle()
public void cancel()
protected void scheduleDispatch()
protected void scheduleTimeout()
protected void cancelTimeout()
public boolean isCompleting()
public boolean isComplete()
public boolean isAsyncStarted()
public boolean isAsync()
public void dispatch(javax.servlet.ServletContext context,
String path)
dispatch in interface AsyncContextpublic void dispatch(String path)
dispatch in interface AsyncContextpublic Request getBaseRequest()
public javax.servlet.ServletRequest getRequest()
getRequest in interface AsyncContextpublic javax.servlet.ServletResponse getResponse()
getResponse in interface AsyncContextpublic void start(Runnable run)
start in interface AsyncContextpublic boolean hasOriginalRequestAndResponse()
hasOriginalRequestAndResponse in interface AsyncContextpublic ContextHandler getContextHandler()
public boolean isResumed()
isResumed in interface ContinuationContinuation.isResumed()public boolean isExpired()
isExpired in interface ContinuationContinuation.isExpired()public void resume()
resume in interface ContinuationContinuation.resume()protected void suspend(javax.servlet.ServletContext context,
javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response)
public void suspend(javax.servlet.ServletResponse response)
suspend in interface ContinuationContinuation.suspend()public void suspend()
suspend in interface ContinuationContinuation.suspend()public javax.servlet.ServletResponse getServletResponse()
getServletResponse in interface ContinuationContinuation.getServletResponse()public Object getAttribute(String name)
getAttribute in interface ContinuationContinuation.getAttribute(java.lang.String)public void removeAttribute(String name)
removeAttribute in interface ContinuationContinuation.removeAttribute(java.lang.String)public void setAttribute(String name, Object attribute)
setAttribute in interface ContinuationContinuation.setAttribute(java.lang.String, java.lang.Object)public void undispatch()
undispatch in interface ContinuationContinuation.undispatch()Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.