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 class
AsyncContextState.WrappedAsyncListener
Deprecated.
-
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 void
addListener(AsyncListener listener)
Deprecated.void
addListener(AsyncListener listener, ServletRequest request, ServletResponse response)
Deprecated.void
complete()
Deprecated.<T extends AsyncListener>
TcreateListener(java.lang.Class<T> clazz)
Deprecated.void
dispatch()
Deprecated.void
dispatch(java.lang.String path)
Deprecated.void
dispatch(ServletContext context, java.lang.String path)
Deprecated.HttpChannel
getHttpChannel()
Deprecated.HttpChannelState
getHttpChannelState()
Deprecated.ServletRequest
getRequest()
Deprecated.ServletResponse
getResponse()
Deprecated.long
getTimeout()
Deprecated.Get the current timeout.boolean
hasOriginalRequestAndResponse()
Deprecated.void
reset()
Deprecated.void
setTimeout(long arg0)
Deprecated.Set the timeout.void
start(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:
addListener
in interfaceAsyncContext
-
addListener
public void addListener(AsyncListener listener)
Deprecated.- Specified by:
addListener
in interfaceAsyncContext
-
complete
public void complete()
Deprecated.- Specified by:
complete
in interfaceAsyncContext
-
createListener
public <T extends AsyncListener> T createListener(java.lang.Class<T> clazz) throws ServletException
Deprecated.- Specified by:
createListener
in interfaceAsyncContext
- Throws:
ServletException
-
dispatch
public void dispatch()
Deprecated.- Specified by:
dispatch
in interfaceAsyncContext
-
dispatch
public void dispatch(java.lang.String path)
Deprecated.- Specified by:
dispatch
in interfaceAsyncContext
- Parameters:
path
- The path to which the request/response should be dispatched relative to theServletContext
from which this async request was started.
-
dispatch
public void dispatch(ServletContext context, java.lang.String path)
Deprecated.- Specified by:
dispatch
in interfaceAsyncContext
- Parameters:
context
- TheServletContext
to 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:
getRequest
in interfaceAsyncContext
-
getResponse
public ServletResponse getResponse()
Deprecated.- Specified by:
getResponse
in interfaceAsyncContext
-
getTimeout
public long getTimeout()
Deprecated.Description copied from interface:AsyncContext
Get the current timeout.- Specified by:
getTimeout
in interfaceAsyncContext
- Returns:
- The timeout in milliseconds. 0 or less indicates no timeout.
-
hasOriginalRequestAndResponse
public boolean hasOriginalRequestAndResponse()
Deprecated.- Specified by:
hasOriginalRequestAndResponse
in interfaceAsyncContext
-
setTimeout
public void setTimeout(long arg0)
Deprecated.Description copied from interface:AsyncContext
Set the timeout.- Specified by:
setTimeout
in interfaceAsyncContext
- Parameters:
arg0
- The timeout in milliseconds. 0 or less indicates no timeout.
-
start
public void start(java.lang.Runnable task)
Deprecated.- Specified by:
start
in interfaceAsyncContext
-
reset
public void reset()
Deprecated.
-
getHttpChannelState
public HttpChannelState getHttpChannelState()
Deprecated.
-
-