RESTEasy JAX-RS Implementation 2.3.6.Final-redhat-1

org.jboss.resteasy.util
Class DelegatingHttpRequest

java.lang.Object
  extended by org.jboss.resteasy.util.DelegatingHttpRequest
All Implemented Interfaces:
HttpRequest
Direct Known Subclasses:
PrefixedFormFieldsHttpRequest

public class DelegatingHttpRequest
extends Object
implements HttpRequest

Version:
$Revision: 1 $
Author:
Bill Burke

Constructor Summary
DelegatingHttpRequest(HttpRequest delegate)
           
 
Method Summary
 AsynchronousResponse createAsynchronousResponse(long suspendTimeout)
          This method will create an asynchronous response and prepare the request to be issued asynchronously
 AsynchronousResponse getAsynchronousResponse()
          Returns the AsynchronousResponse created by createAsynchronousResponse
 Object getAttribute(String attribute)
          Map of contextual data.
 javax.ws.rs.core.MultivaluedMap<String,String> getDecodedFormParameters()
           
 javax.ws.rs.core.MultivaluedMap<String,String> getFormParameters()
          application/x-www-form-urlencoded parameters

This is here because @FormParam needs it and for when there are servlet filters that eat up the input stream

 javax.ws.rs.core.HttpHeaders getHttpHeaders()
           
 String getHttpMethod()
           
 InputStream getInputStream()
           
 String getPreprocessedPath()
          Encoded preprocessed path with extension mappings and matrix parameters removed
 javax.ws.rs.core.UriInfo getUri()
           
 void initialRequestThreadFinished()
          Callback by the initial calling thread.
 boolean isInitial()
          Asynchronous HTTP support.
 boolean isSuspended()
          Asynchronous HTTP support.
 void removeAttribute(String name)
           
 void setAttribute(String name, Object value)
           
 void setInputStream(InputStream stream)
          If you are using a servlet container, this will *NOT* override the HttpServletRequest.getInputStream().
 void setPreprocessedPath(String path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegatingHttpRequest

public DelegatingHttpRequest(HttpRequest delegate)
Method Detail

getHttpHeaders

public javax.ws.rs.core.HttpHeaders getHttpHeaders()
Specified by:
getHttpHeaders in interface HttpRequest

getInputStream

public InputStream getInputStream()
Specified by:
getInputStream in interface HttpRequest

setInputStream

public void setInputStream(InputStream stream)
Description copied from interface: HttpRequest
If you are using a servlet container, this will *NOT* override the HttpServletRequest.getInputStream(). It will only override it for the resteasy HttpRequest

Specified by:
setInputStream in interface HttpRequest

getUri

public javax.ws.rs.core.UriInfo getUri()
Specified by:
getUri in interface HttpRequest

getHttpMethod

public String getHttpMethod()
Specified by:
getHttpMethod in interface HttpRequest

getPreprocessedPath

public String getPreprocessedPath()
Description copied from interface: HttpRequest
Encoded preprocessed path with extension mappings and matrix parameters removed

Specified by:
getPreprocessedPath in interface HttpRequest
Returns:

setPreprocessedPath

public void setPreprocessedPath(String path)
Specified by:
setPreprocessedPath in interface HttpRequest

getFormParameters

public javax.ws.rs.core.MultivaluedMap<String,String> getFormParameters()
Description copied from interface: HttpRequest
application/x-www-form-urlencoded parameters

This is here because @FormParam needs it and for when there are servlet filters that eat up the input stream

Specified by:
getFormParameters in interface HttpRequest
Returns:
null if no parameters, this is encoded map

getDecodedFormParameters

public javax.ws.rs.core.MultivaluedMap<String,String> getDecodedFormParameters()
Specified by:
getDecodedFormParameters in interface HttpRequest

getAttribute

public Object getAttribute(String attribute)
Description copied from interface: HttpRequest
Map of contextual data. Similar to HttpServletRequest attributes

Specified by:
getAttribute in interface HttpRequest
Returns:

setAttribute

public void setAttribute(String name,
                         Object value)
Specified by:
setAttribute in interface HttpRequest

removeAttribute

public void removeAttribute(String name)
Specified by:
removeAttribute in interface HttpRequest

isInitial

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

Specified by:
isInitial in interface HttpRequest

isSuspended

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

Specified by:
isSuspended in interface HttpRequest

createAsynchronousResponse

public AsynchronousResponse createAsynchronousResponse(long suspendTimeout)
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
Returns:

getAsynchronousResponse

public AsynchronousResponse getAsynchronousResponse()
Description copied from interface: HttpRequest
Returns the AsynchronousResponse created by createAsynchronousResponse

Specified by:
getAsynchronousResponse in interface HttpRequest
Returns:

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

RESTEasy JAX-RS Implementation 2.3.6.Final-redhat-1

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.