public final class PSHTTPResponseInfo extends Object
When possible, instances contain details such as the error ID and message when errors occur.
Modifier and Type | Class and Description |
---|---|
static class |
PSHTTPResponseInfo.Status
Status of an HTTP response.
|
Constructor and Description |
---|
PSHTTPResponseInfo() |
Modifier and Type | Method and Description |
---|---|
int |
getCode() |
String |
getErrorID() |
String |
getMediaType() |
String |
getMessage() |
PSHTTPResponseInfo.Status |
getStatus() |
boolean |
isSuccessful()
Shorthand method to check whether the response was successful.
|
String |
toString() |
public int getCode()
public String getMessage()
public String getMediaType()
public PSHTTPResponseInfo.Status getStatus()
public boolean isSuccessful()
true
is the status is SUCCESSFUL;
false
for any other status.public String getErrorID()
Copyright © 2016 Allette Systems. All rights reserved.