Class HttpServerRequest

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

public class HttpServerRequest extends BaseHttpRequest
Version:
$Revision: 1 $
Author:
Bill Burke
  • Field Details

  • Constructor Details

  • Method Details

    • getMutableHeaders

      public jakarta.ws.rs.core.MultivaluedMap<String,String> getMutableHeaders()
    • getHttpHeaders

      public jakarta.ws.rs.core.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
      Parameters:
      stream - input stream
    • 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
      Parameters:
      attribute - attribute name
      Returns:
      attribute
    • setAttribute

      public void setAttribute(String name, Object value)
    • removeAttribute

      public void removeAttribute(String name)
    • getAttributeNames

      public Enumeration<String> getAttributeNames()
    • getAsyncContext

      public ResteasyAsynchronousContext getAsyncContext()
    • forward

      public void forward(String path)
    • wasForwarded

      public boolean wasForwarded()
    • getRemoteHost

      public String getRemoteHost()
      Description copied from interface: HttpRequest
      Returns the fully qualified name of the client or the last proxy that sent the request. If the engine cannot or chooses not to resolve the hostname (to improve performance), this method returns the dotted-string form of the IP address.
      Returns:
      a String containing the fully qualified name of the client
    • getRemoteAddress

      public String getRemoteAddress()
      Description copied from interface: HttpRequest
      Returns the Internet Protocol (IP) address of the client or last proxy that sent the request.
      Returns:
      a String containing the IP address of the client that sent the request