Interface HttpRequest

    • Method Detail

      • getHttpHeaders

        javax.ws.rs.core.HttpHeaders getHttpHeaders()
      • getMutableHeaders

        javax.ws.rs.core.MultivaluedMap<String,​String> getMutableHeaders()
      • setInputStream

        void setInputStream​(InputStream stream)
        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
      • getUri

        javax.ws.rs.core.UriInfo getUri()
        This method *MUST* always return the same instance.
        Returns:
        uri info
      • getHttpMethod

        String getHttpMethod()
      • setHttpMethod

        void setHttpMethod​(String method)
      • getFormParameters

        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

        Returns:
        null if no parameters, this is encoded map
      • getDecodedFormParameters

        javax.ws.rs.core.MultivaluedMap<String,​String> getDecodedFormParameters()
      • formParametersRead

        boolean formParametersRead()
        Were form parameters read before marshalling to body?
        Returns:
      • getAttribute

        Object getAttribute​(String attribute)
        Map of contextual data. Similar to HttpServletRequest attributes
        Parameters:
        attribute - attribute name
        Returns:
        attribute
      • setAttribute

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

        void removeAttribute​(String name)
      • isInitial

        boolean isInitial()
      • forward

        void forward​(String path)
      • wasForwarded

        boolean wasForwarded()
      • getRemoteAddress

        String getRemoteAddress()
        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
      • getRemoteHost

        String getRemoteHost()
        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