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  String httpMethod
           
protected  String preProcessedPath
           
protected  ResteasyUriInfo uriInfo
           
 
Fields inherited from class org.jboss.resteasy.plugins.server.BaseHttpRequest
decodedFormParameters, dispatcher, formParameters, httpResponse
 
Constructor Summary
HttpServerRequest(SynchronousDispatcher dispatcher, HttpResponse httpResponse, com.sun.net.httpserver.HttpExchange exchange)
           
 
Method Summary
 ResteasyAsynchronousContext getAsyncContext()
           
 Object getAttribute(String attribute)
          Map of contextual data.
 Enumeration<String> getAttributeNames()
           
 HttpHeaders getHttpHeaders()
           
 String getHttpMethod()
           
 InputStream getInputStream()
           
 ResteasyUriInfo getUri()
           
 void removeAttribute(String name)
           
 void setAttribute(String name, Object value)
           
 void setHttpMethod(String method)
           
 void setInputStream(InputStream stream)
          If you are using a servlet container, this will *NOT* override the HttpServletRequest.getInputStream().
 void setRequestUri(URI requestUri)
           
 void setRequestUri(URI baseUri, URI requestUri)
           
 
Methods inherited from class org.jboss.resteasy.plugins.server.BaseHttpRequest
getDecodedFormParameters, getFormParameters, isInitial
 
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 ResteasyUriInfo uriInfo

preProcessedPath

protected String preProcessedPath

attributes

protected Map<String,Object> attributes

httpMethod

protected String httpMethod
Constructor Detail

HttpServerRequest

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

setRequestUri

public void setRequestUri(URI requestUri)
                   throws IllegalStateException
Throws:
IllegalStateException

setRequestUri

public void setRequestUri(URI baseUri,
                          URI requestUri)
                   throws IllegalStateException
Throws:
IllegalStateException

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 ResteasyUriInfo getUri()

getHttpMethod

public String getHttpMethod()

setHttpMethod

public void setHttpMethod(String method)

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)

getAttributeNames

public Enumeration<String> getAttributeNames()

getAsyncContext

public ResteasyAsynchronousContext getAsyncContext()


Copyright © 2013. All Rights Reserved.