org.jboss.resteasy.plugins.server.sun.http
Class HttpServerRequest

java.lang.Object
  extended by org.jboss.resteasy.plugins.server.BaseHttpRequest
      extended by org.jboss.resteasy.plugins.server.sun.http.HttpServerRequest
All Implemented Interfaces:
HttpRequest

public class HttpServerRequest
extends BaseHttpRequest

Version:
$Revision: 1 $
Author:
Bill Burke

Field Summary
protected  Map<String,Object> attributes
           
protected  com.sun.net.httpserver.HttpExchange exchange
           
protected  HttpHeaders httpHeaders
           
protected  InputStream inputStream
           
protected  String preProcessedPath
           
protected  UriInfo uriInfo
           
 
Fields inherited from class org.jboss.resteasy.plugins.server.BaseHttpRequest
asynchronousResponse, decodedFormParameters, dispatcher, formParameters, httpResponse, latch, suspended, suspendTimeout
 
Constructor Summary
HttpServerRequest(SynchronousDispatcher dispatcher, HttpResponse httpResponse, com.sun.net.httpserver.HttpExchange exchange)
           
 
Method Summary
 Object getAttribute(String attribute)
          Map of contextual data.
 HttpHeaders getHttpHeaders()
           
 String getHttpMethod()
           
 InputStream getInputStream()
           
 String getPreprocessedPath()
          Encoded preprocessed path with extension mappings and matrix parameters removed
 UriInfo getUri()
           
 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 org.jboss.resteasy.plugins.server.BaseHttpRequest
createAsynchronousResponse, getAsynchronousResponse, getDecodedFormParameters, getFormParameters, initialRequestThreadFinished, isInitial, isSuspended
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

exchange

protected com.sun.net.httpserver.HttpExchange exchange

httpHeaders

protected HttpHeaders httpHeaders

uriInfo

protected UriInfo uriInfo

preProcessedPath

protected String preProcessedPath

inputStream

protected InputStream inputStream

attributes

protected Map<String,Object> attributes
Constructor Detail

HttpServerRequest

public HttpServerRequest(SynchronousDispatcher dispatcher,
                         HttpResponse httpResponse,
                         com.sun.net.httpserver.HttpExchange exchange)
Method Detail

getHttpHeaders

public HttpHeaders getHttpHeaders()

getInputStream

public InputStream getInputStream()

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


getUri

public UriInfo getUri()

getHttpMethod

public String getHttpMethod()

getPreprocessedPath

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

Returns:

setPreprocessedPath

public void setPreprocessedPath(String path)

getAttribute

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

Returns:

setAttribute

public void setAttribute(String name,
                         Object value)

removeAttribute

public void removeAttribute(String name)


Copyright © 2012. All Rights Reserved.