Class HttpRequestMessage


  • public class HttpRequestMessage
    extends OAuthMessage
    An HttpServletRequest, encapsulated as an OAuthMessage.
    Author:
    John Kristian
    • Method Detail

      • getBodyAsStream

        public InputStream getBodyAsStream()
                                    throws IOException
        Description copied from class: OAuthMessage
        Get a stream from which to read the body of the HTTP request or response. This is designed to support efficient streaming of a large message. The caller must close the returned stream, to release the underlying resources such as the TCP connection for an HTTP response.
        Overrides:
        getBodyAsStream in class OAuthMessage
        Returns:
        a stream from which to read the body, or null to indicate there is no body.
        Throws:
        IOException
      • getBodyEncoding

        public String getBodyEncoding()
        Description copied from class: OAuthMessage
        The character encoding of the body of this message.
        Overrides:
        getBodyEncoding in class OAuthMessage
        Returns:
        the name of an encoding, or "ISO-8859-1" if no charset has been specified.