Package org.eclipse.jetty.server
Class AsyncContextState
- java.lang.Object
-
- org.eclipse.jetty.server.AsyncContextState
-
- All Implemented Interfaces:
AsyncContext
@Deprecated(since="2021-05-27") public class AsyncContextState extends java.lang.Object implements AsyncContext
Deprecated.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAsyncContextState.WrappedAsyncListenerDeprecated.
-
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
Constructors Constructor Description AsyncContextState(HttpChannelState state)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddListener(AsyncListener listener)Deprecated.voidaddListener(AsyncListener listener, ServletRequest request, ServletResponse response)Deprecated.voidcomplete()Deprecated.<T extends AsyncListener>
TcreateListener(java.lang.Class<T> clazz)Deprecated.voiddispatch()Deprecated.voiddispatch(java.lang.String path)Deprecated.voiddispatch(ServletContext context, java.lang.String path)Deprecated.HttpChannelgetHttpChannel()Deprecated.HttpChannelStategetHttpChannelState()Deprecated.ServletRequestgetRequest()Deprecated.ServletResponsegetResponse()Deprecated.longgetTimeout()Deprecated.Get the current timeout.booleanhasOriginalRequestAndResponse()Deprecated.voidreset()Deprecated.voidsetTimeout(long arg0)Deprecated.Set the timeout.voidstart(java.lang.Runnable task)Deprecated.
-
-
-
Constructor Detail
-
AsyncContextState
public AsyncContextState(HttpChannelState state)
Deprecated.
-
-
Method Detail
-
getHttpChannel
public HttpChannel getHttpChannel()
Deprecated.
-
addListener
public void addListener(AsyncListener listener, ServletRequest request, ServletResponse response)
Deprecated.- Specified by:
addListenerin interfaceAsyncContext
-
addListener
public void addListener(AsyncListener listener)
Deprecated.- Specified by:
addListenerin interfaceAsyncContext
-
complete
public void complete()
Deprecated.- Specified by:
completein interfaceAsyncContext
-
createListener
public <T extends AsyncListener> T createListener(java.lang.Class<T> clazz) throws ServletException
Deprecated.- Specified by:
createListenerin interfaceAsyncContext- Throws:
ServletException
-
dispatch
public void dispatch()
Deprecated.- Specified by:
dispatchin interfaceAsyncContext
-
dispatch
public void dispatch(java.lang.String path)
Deprecated.- Specified by:
dispatchin interfaceAsyncContext- Parameters:
path- The path to which the request/response should be dispatched relative to theServletContextfrom which this async request was started.
-
dispatch
public void dispatch(ServletContext context, java.lang.String path)
Deprecated.- Specified by:
dispatchin interfaceAsyncContext- Parameters:
context- TheServletContextto which the request/response should be dispatched.path- The path to which the request/response should be dispatched relative to the specifiedServletContext.
-
getRequest
public ServletRequest getRequest()
Deprecated.- Specified by:
getRequestin interfaceAsyncContext
-
getResponse
public ServletResponse getResponse()
Deprecated.- Specified by:
getResponsein interfaceAsyncContext
-
getTimeout
public long getTimeout()
Deprecated.Description copied from interface:AsyncContextGet the current timeout.- Specified by:
getTimeoutin interfaceAsyncContext- Returns:
- The timeout in milliseconds. 0 or less indicates no timeout.
-
hasOriginalRequestAndResponse
public boolean hasOriginalRequestAndResponse()
Deprecated.- Specified by:
hasOriginalRequestAndResponsein interfaceAsyncContext
-
setTimeout
public void setTimeout(long arg0)
Deprecated.Description copied from interface:AsyncContextSet the timeout.- Specified by:
setTimeoutin interfaceAsyncContext- Parameters:
arg0- The timeout in milliseconds. 0 or less indicates no timeout.
-
start
public void start(java.lang.Runnable task)
Deprecated.- Specified by:
startin interfaceAsyncContext
-
reset
public void reset()
Deprecated.
-
getHttpChannelState
public HttpChannelState getHttpChannelState()
Deprecated.
-
-