public class Response
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getBody()
Obtains the HTTP Response body
|
int |
getCode()
Obtains the HTTP status code
|
java.lang.String |
getHeader(java.lang.String name)
Obtains a single HTTP Header value, or null if undefined
|
java.util.Map<java.lang.String,java.lang.String> |
getHeaders()
Obtains a
Map containing the HTTP Response Headers |
java.lang.String |
getMessage()
Obtains the HTTP status message.
|
java.io.InputStream |
getStream()
Obtains the meaningful stream of the HttpUrlConnection, either inputStream
or errorInputStream, depending on the status code
|
boolean |
isSuccessful() |
public boolean isSuccessful()
public java.lang.String getBody()
public java.io.InputStream getStream()
public int getCode()
public java.lang.String getMessage()
null if the message can not be discerned from the response (not valid HTTP)public java.util.Map<java.lang.String,java.lang.String> getHeaders()
Map containing the HTTP Response Headerspublic java.lang.String getHeader(java.lang.String name)
name - the header name."Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"