Class ParseHttpRequest


  • public final class ParseHttpRequest
    extends java.lang.Object
    The http request we send to parse server. Instances of this class are not immutable. The request body may be consumed only once. The other fields are immutable.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.lang.String> getAllHeaders()
      Gets all headers from this ParseHttpRequest.
      ParseHttpBody getBody()
      Gets http body of this ParseHttpRequest.
      java.lang.String getHeader​(java.lang.String name)
      Retrieves the header value from this ParseHttpRequest by the given header name.
      ParseHttpRequest.Method getMethod()
      Gets the Method of this ParseHttpRequest.
      java.lang.String getUrl()
      Gets the url of this ParseHttpRequest.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getUrl

        public java.lang.String getUrl()
        Gets the url of this ParseHttpRequest.
        Returns:
        The url of this ParseHttpRequest.
      • getMethod

        public ParseHttpRequest.Method getMethod()
        Gets the Method of this ParseHttpRequest.
        Returns:
        The Method of this ParseHttpRequest.
      • getAllHeaders

        public java.util.Map<java.lang.String,​java.lang.String> getAllHeaders()
        Gets all headers from this ParseHttpRequest.
        Returns:
        The headers of this ParseHttpRequest.
      • getHeader

        public java.lang.String getHeader​(java.lang.String name)
        Retrieves the header value from this ParseHttpRequest by the given header name.
        Parameters:
        name - The name of the header.
        Returns:
        The value of the header.
      • getBody

        public ParseHttpBody getBody()
        Gets http body of this ParseHttpRequest.
        Returns:
        The http body of this ParseHttpRequest.