org.jboss.resteasy.plugins.server.servlet
Class Servlet3AsyncHttpRequest

java.lang.Object
  extended by org.jboss.resteasy.plugins.server.servlet.HttpServletInputMessage
      extended by org.jboss.resteasy.plugins.server.servlet.Servlet3AsyncHttpRequest
All Implemented Interfaces:
HttpRequest

public class Servlet3AsyncHttpRequest
extends HttpServletInputMessage

Version:
$Revision: 1 $
Author:
Bill Burke

Field Summary
 
Fields inherited from class org.jboss.resteasy.plugins.server.servlet.HttpServletInputMessage
asynchronousResponse, decodedFormParameters, dispatcher, formParameters, httpHeaders, httpMethod, httpResponse, latch, preProcessedPath, request, suspended, suspendTimeout, uri
 
Constructor Summary
Servlet3AsyncHttpRequest(javax.servlet.http.HttpServletRequest httpServletRequest, HttpResponse httpResponse, HttpHeaders httpHeaders, UriInfo uriInfo, java.lang.String s, SynchronousDispatcher synchronousDispatcher)
           
 
Method Summary
 AsynchronousResponse createAsynchronousResponse(long l)
          This method will create an asynchronous response and prepare the request to be issued asynchronously
 void initialRequestThreadFinished()
          Callback by the initial calling thread.
 boolean isInitial()
          Asynchronous HTTP support.
 boolean isSuspended()
          Asynchronous HTTP support.
 boolean isTimeout()
           
 
Methods inherited from class org.jboss.resteasy.plugins.server.servlet.HttpServletInputMessage
getAsynchronousResponse, getAttribute, getDecodedFormParameters, getFormParameters, getHttpHeaders, getHttpMethod, getInputStream, getPreprocessedPath, getPutDecodedFormParameters, getPutFormParameters, getUri, removeAttribute, setAttribute, setPreprocessedPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Servlet3AsyncHttpRequest

public Servlet3AsyncHttpRequest(javax.servlet.http.HttpServletRequest httpServletRequest,
                                HttpResponse httpResponse,
                                HttpHeaders httpHeaders,
                                UriInfo uriInfo,
                                java.lang.String s,
                                SynchronousDispatcher synchronousDispatcher)
Method Detail

initialRequestThreadFinished

public void initialRequestThreadFinished()
Description copied from interface: HttpRequest
Callback by the initial calling thread. This callback will probably do nothing in an asynchronous environment but will be used to simulate AsynchronousResponse in vanilla Servlet containers that do not support asychronous HTTP.

Specified by:
initialRequestThreadFinished in interface HttpRequest
Overrides:
initialRequestThreadFinished in class HttpServletInputMessage

createAsynchronousResponse

public AsynchronousResponse createAsynchronousResponse(long l)
Description copied from interface: HttpRequest
This method will create an asynchronous response and prepare the request to be issued asynchronously

Specified by:
createAsynchronousResponse in interface HttpRequest
Overrides:
createAsynchronousResponse in class HttpServletInputMessage
Returns:

isInitial

public boolean isInitial()
Description copied from interface: HttpRequest
Asynchronous HTTP support. Mirrors Servlet 3.0 API

Specified by:
isInitial in interface HttpRequest
Overrides:
isInitial in class HttpServletInputMessage

isSuspended

public boolean isSuspended()
Description copied from interface: HttpRequest
Asynchronous HTTP support. Mirrors Servlet 3.0 API

Specified by:
isSuspended in interface HttpRequest
Overrides:
isSuspended in class HttpServletInputMessage

isTimeout

public boolean isTimeout()
Overrides:
isTimeout in class HttpServletInputMessage


Copyright © 2009. All Rights Reserved.