org.jboss.resteasy.util
Class HttpRequestImpl

java.lang.Object
  extended by org.jboss.resteasy.util.HttpRequestImpl
All Implemented Interfaces:
HttpRequest

public abstract class HttpRequestImpl
extends java.lang.Object
implements HttpRequest

Http request abstraction implementation

Version:
$Revision: 1 $
Author:
Bill Burke

Field Summary
protected  MultivaluedMap<java.lang.String,java.lang.String> decodedFormParameters
           
protected  MultivaluedMap<java.lang.String,java.lang.String> formParameters
           
protected  HttpHeaders httpHeaders
           
protected  java.lang.String httpMethod
           
protected  java.io.InputStream inputStream
           
protected  java.lang.String preProcessedPath
           
protected  UriInfo uri
           
 
Constructor Summary
HttpRequestImpl(java.io.InputStream inputStream, HttpHeaders httpHeaders, java.lang.String httpMethod, UriInfo uri)
           
 
Method Summary
 void complete()
           
 MultivaluedMap<java.lang.String,java.lang.String> getDecodedFormParameters()
           
 MultivaluedMap<java.lang.String,java.lang.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

 HttpHeaders getHttpHeaders()
           
 java.lang.String getHttpMethod()
           
 java.io.InputStream getInputStream()
           
 java.lang.String getPreprocessedPath()
          Encoded preprocessed path with extension mappings and matrix parameters removed
 UriInfo getUri()
           
 boolean isInitial()
          Asynchronous HTTP support.
 boolean isSuspended()
          Asynchronous HTTP support.
 boolean isTimeout()
           
 void setPreprocessedPath(java.lang.String path)
           
 void suspend()
           
 void suspend(long timeout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.resteasy.spi.HttpRequest
createAsynchronousResponse, initialRequestThreadFinished
 

Field Detail

httpHeaders

protected HttpHeaders httpHeaders

inputStream

protected java.io.InputStream inputStream

uri

protected UriInfo uri

httpMethod

protected java.lang.String httpMethod

preProcessedPath

protected java.lang.String preProcessedPath

formParameters

protected MultivaluedMap<java.lang.String,java.lang.String> formParameters

decodedFormParameters

protected MultivaluedMap<java.lang.String,java.lang.String> decodedFormParameters
Constructor Detail

HttpRequestImpl

public HttpRequestImpl(java.io.InputStream inputStream,
                       HttpHeaders httpHeaders,
                       java.lang.String httpMethod,
                       UriInfo uri)
Method Detail

getHttpHeaders

public HttpHeaders getHttpHeaders()
Specified by:
getHttpHeaders in interface HttpRequest

getInputStream

public java.io.InputStream getInputStream()
Specified by:
getInputStream in interface HttpRequest

getUri

public UriInfo getUri()
Specified by:
getUri in interface HttpRequest

getHttpMethod

public java.lang.String getHttpMethod()
Specified by:
getHttpMethod in interface HttpRequest

getPreprocessedPath

public java.lang.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(java.lang.String path)
Specified by:
setPreprocessedPath in interface HttpRequest

getFormParameters

public MultivaluedMap<java.lang.String,java.lang.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 MultivaluedMap<java.lang.String,java.lang.String> getDecodedFormParameters()
Specified by:
getDecodedFormParameters in interface HttpRequest

suspend

public void suspend()

suspend

public void suspend(long timeout)

complete

public void complete()

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

isTimeout

public boolean isTimeout()


Copyright © 2009. All Rights Reserved.