Class Servlet3AsyncHttpRequest.Servlet3ExecutionContext
- java.lang.Object
-
- org.jboss.resteasy.core.AbstractExecutionContext
-
- org.jboss.resteasy.plugins.server.servlet.Servlet3AsyncHttpRequest.Servlet3ExecutionContext
-
- All Implemented Interfaces:
ResteasyAsynchronousContext
- Enclosing class:
- Servlet3AsyncHttpRequest
private class Servlet3AsyncHttpRequest.Servlet3ExecutionContext extends AbstractExecutionContext
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classServlet3AsyncHttpRequest.Servlet3ExecutionContext.Servle3AsychronousResponse
-
Field Summary
Fields Modifier and Type Field Description protected Servlet3AsyncHttpRequest.Servlet3ExecutionContext.Servle3AsychronousResponseasynchronousResponseprotected booleancancelledprotected booleandoneprotected javax.servlet.ServletRequestservletRequestprotected booleanwasSuspended-
Fields inherited from class org.jboss.resteasy.core.AbstractExecutionContext
dispatcher, request, response
-
-
Constructor Summary
Constructors Constructor Description Servlet3ExecutionContext(javax.servlet.ServletRequest servletRequest)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private javax.servlet.AsyncContextgetAsyncContext()ResteasyAsynchronousResponsegetAsyncResponse()booleanisSuspended()protected javax.servlet.AsyncContextsetupAsyncContext()ResteasyAsynchronousResponsesuspend()ResteasyAsynchronousResponsesuspend(long millis)ResteasyAsynchronousResponsesuspend(long time, java.util.concurrent.TimeUnit unit)
-
-
-
Field Detail
-
servletRequest
protected final javax.servlet.ServletRequest servletRequest
-
done
protected volatile boolean done
-
cancelled
protected volatile boolean cancelled
-
wasSuspended
protected volatile boolean wasSuspended
-
asynchronousResponse
protected Servlet3AsyncHttpRequest.Servlet3ExecutionContext.Servle3AsychronousResponse asynchronousResponse
-
-
Method Detail
-
getAsyncResponse
public ResteasyAsynchronousResponse getAsyncResponse()
-
suspend
public ResteasyAsynchronousResponse suspend() throws java.lang.IllegalStateException
- Throws:
java.lang.IllegalStateException
-
suspend
public ResteasyAsynchronousResponse suspend(long millis) throws java.lang.IllegalStateException
- Throws:
java.lang.IllegalStateException
-
suspend
public ResteasyAsynchronousResponse suspend(long time, java.util.concurrent.TimeUnit unit) throws java.lang.IllegalStateException
- Throws:
java.lang.IllegalStateException
-
setupAsyncContext
protected javax.servlet.AsyncContext setupAsyncContext()
-
getAsyncContext
private javax.servlet.AsyncContext getAsyncContext()
-
isSuspended
public boolean isSuspended()
-
-