Class HttpRequestMessage

java.lang.Object
net.oauth.OAuthMessage
net.oauth.server.HttpRequestMessage

public class HttpRequestMessage extends net.oauth.OAuthMessage
An HttpServletRequest, encapsulated as an OAuthMessage.
Author:
John Kristian
Implementation Note:
Copied from net.oauth.core:oauth-provider to make it Jakarta compatible
  • Field Summary

    Fields inherited from class net.oauth.OAuthMessage

    AUTH_SCHEME, DELETE, GET, method, POST, PUT, URL
  • Constructor Summary

    Constructors
    Constructor
    Description
    HttpRequestMessage(jakarta.servlet.http.HttpServletRequest request, String URL)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    static List<net.oauth.OAuth.Parameter>
    getParameters(jakarta.servlet.http.HttpServletRequest request)
     

    Methods inherited from class net.oauth.OAuthMessage

    addParameter, addParameter, addParameters, addRequiredParameters, completeParameters, decodeAuthorization, dump, getAuthorizationHeader, getBodyType, getConsumerKey, getDump, getHeader, getHeaders, getParameter, getParameterMap, getParameters, getSignature, getSignatureMethod, getToken, readAll, readBodyAsString, requireParameters, sign, toHttpRequest, toString, validateMessage

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • HttpRequestMessage

      public HttpRequestMessage(jakarta.servlet.http.HttpServletRequest request, String URL)
  • Method Details

    • getBodyAsStream

      public InputStream getBodyAsStream() throws IOException
      Overrides:
      getBodyAsStream in class net.oauth.OAuthMessage
      Throws:
      IOException
    • getBodyEncoding

      public String getBodyEncoding()
      Overrides:
      getBodyEncoding in class net.oauth.OAuthMessage
    • getParameters

      public static List<net.oauth.OAuth.Parameter> getParameters(jakarta.servlet.http.HttpServletRequest request)