com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Field and Description |
|---|---|
protected String |
bucketName |
protected String |
code |
protected ErrorCode |
errorCode |
protected String |
hostId |
protected String |
message |
protected String |
objectName |
protected String |
requestId |
protected String |
resource |
| Constructor and Description |
|---|
ErrorResponse() |
ErrorResponse(ErrorCode errorCode,
String bucketName,
String objectName,
String resource,
String requestId,
String hostId)
Constructs a new ErrorResponse object with error code, bucket name, object name, resource, request ID and host ID.
|
ErrorResponse(Reader reader)
Constructs a new ErrorResponse object by reading given reader stream.
|
| Modifier and Type | Method and Description |
|---|---|
String |
bucketName()
Returns bucket name.
|
String |
code()
Returns error code string.
|
ErrorCode |
errorCode()
Returns error code.
|
String |
getString()
Returns string with field values.
|
String |
hostId()
Returns host ID.
|
String |
message()
Returns error message.
|
String |
objectName()
Returns object name.
|
void |
parseXml(Reader reader)
Fills up this ErrorResponse object's fields by reading/parsing values from given Reader input stream.
|
String |
requestId()
Returns request ID.
|
String |
resource()
Returns resource.
|
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllprotected String code
protected String message
protected String bucketName
protected String objectName
protected String resource
protected String requestId
protected String hostId
protected ErrorCode errorCode
public ErrorResponse()
throws org.xmlpull.v1.XmlPullParserException
org.xmlpull.v1.XmlPullParserExceptionpublic ErrorResponse(Reader reader) throws IOException, org.xmlpull.v1.XmlPullParserException
IOExceptionorg.xmlpull.v1.XmlPullParserExceptionpublic ErrorResponse(ErrorCode errorCode, String bucketName, String objectName, String resource, String requestId, String hostId) throws org.xmlpull.v1.XmlPullParserException
org.xmlpull.v1.XmlPullParserExceptionpublic ErrorCode errorCode()
public String code()
public String message()
public String bucketName()
public String objectName()
public String hostId()
public String requestId()
public String resource()
public void parseXml(Reader reader) throws IOException, org.xmlpull.v1.XmlPullParserException
parseXml in class XmlEntityIOExceptionorg.xmlpull.v1.XmlPullParserExceptionpublic String getString()