Package com.parse.http
Class ParseHttpRequest
- java.lang.Object
-
- com.parse.http.ParseHttpRequest
-
public final class ParseHttpRequest extends java.lang.ObjectThe 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 classParseHttpRequest.BuilderBuilder ofParseHttpRequest.static classParseHttpRequest.MethodTheParseHttpRequestmethod 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.ParseHttpBodygetBody()Gets http body of thisParseHttpRequest.java.lang.StringgetHeader(java.lang.String name)Retrieves the header value from thisParseHttpRequestby the given header name.ParseHttpRequest.MethodgetMethod()Gets theMethodof thisParseHttpRequest.java.lang.StringgetUrl()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 theMethodof thisParseHttpRequest.- Returns:
- The
Methodof 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 thisParseHttpRequestby 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.
-
-