public final class ParseHttpResponse
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ParseHttpResponse.Builder
Builder for
ParseHttpResponse. |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.String> |
getAllHeaders()
Gets all headers from this
ParseHttpResponse. |
java.io.InputStream |
getContent()
Returns the content of the
ParseHttpResponse's body. |
java.lang.String |
getContentType()
Gets the
Content-Type of this ParseHttpResponse. |
java.lang.String |
getHeader(java.lang.String name)
Retrieves the header value from this
ParseHttpResponse by the given header name. |
java.lang.String |
getReasonPhrase()
Gets the reason phrase of this
ParseHttpResponse. |
int |
getStatusCode()
Gets the status code of this
ParseHttpResponse. |
long |
getTotalSize()
Returns the size of the
ParseHttpResponse's body. |
public int getStatusCode()
ParseHttpResponse.ParseHttpResponse.public java.io.InputStream getContent()
ParseHttpResponse's body. The content can only
be read once and can't be reset.ParseHttpResponse's body.public long getTotalSize()
ParseHttpResponse's body. -1 if the size of the
ParseHttpResponse's body is unknown.ParseHttpResponse's body.public java.lang.String getReasonPhrase()
ParseHttpResponse.ParseHttpResponse.public java.lang.String getContentType()
Content-Type of this ParseHttpResponse.Content-Type of this ParseHttpResponse.public java.lang.String getHeader(java.lang.String name)
ParseHttpResponse by the given header name.name - The name of the header.public java.util.Map<java.lang.String,java.lang.String> getAllHeaders()
ParseHttpResponse.ParseHttpResponse.