Package com.parse.http
Class ParseHttpRequest
- java.lang.Object
-
- com.parse.http.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ParseHttpRequest.Builder
Builder ofParseHttpRequest
.static class
ParseHttpRequest.Method
TheParseHttpRequest
method type.
-
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 thisParseHttpRequest
.ParseHttpBody
getBody()
Gets http body of thisParseHttpRequest
.java.lang.String
getHeader(java.lang.String name)
Retrieves the header value from thisParseHttpRequest
by the given header name.ParseHttpRequest.Method
getMethod()
Gets theMethod
of thisParseHttpRequest
.java.lang.String
getUrl()
Gets the url of thisParseHttpRequest
.
-
-
-
Method Detail
-
getUrl
public java.lang.String getUrl()
Gets the url of thisParseHttpRequest
.- Returns:
- The url of this
ParseHttpRequest
.
-
getMethod
public ParseHttpRequest.Method getMethod()
Gets theMethod
of thisParseHttpRequest
.- Returns:
- The
Method
of thisParseHttpRequest
.
-
getAllHeaders
public java.util.Map<java.lang.String,java.lang.String> getAllHeaders()
Gets all headers from thisParseHttpRequest
.- Returns:
- The headers of this
ParseHttpRequest
.
-
getHeader
public java.lang.String getHeader(java.lang.String name)
Retrieves the header value from thisParseHttpRequest
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 thisParseHttpRequest
.- Returns:
- The http body of this
ParseHttpRequest
.
-
-