public class TableResult extends Object
TableResult
class encapsulates the HTTP
response
and any table entity results returned by the Storage Service REST API operation called for a particular
TableOperation
.Constructor and Description |
---|
TableResult()
Initializes an empty
TableResult instance. |
TableResult(int httpStatusCode)
Initializes a
TableResult instance with the specified HTTP status code. |
Modifier and Type | Method and Description |
---|---|
String |
getEtag()
Gets the ETag returned with the table operation results.
|
int |
getHttpStatusCode()
Gets the HTTP status code returned by a table operation request.
|
HashMap<String,EntityProperty> |
getProperties()
Gets the map of properties for a table entity returned by the table operation.
|
Object |
getResult()
Gets the result returned by the table operation as an Object.
|
<T> T |
getResultAsType()
Gets the result returned by the table operation as an instance of the specified type.
|
protected void |
setEtag(String etag)
Reserved for internal use.
|
protected void |
setHttpStatusCode(int httpStatusCode)
Reserved for internal use.
|
protected void |
setProperties(HashMap<String,EntityProperty> properties)
Reserved for internal use.
|
protected void |
setResult(Object result)
Reserved for internal use.
|
protected void |
updateResultObject(TableEntity ent)
Reserved for internal use.
|
public TableResult()
TableResult
instance.public TableResult(int httpStatusCode)
TableResult
instance with the specified HTTP status code.httpStatusCode
- An int which represents the HTTP status code for the table operation returned by the server.
public String getEtag()
String
containing the ETag returned by the server with the table operation results.public int getHttpStatusCode()
int which represents the HTTP status code for the table operation returned by the server.
public HashMap<String,EntityProperty> getProperties()
java.util.HashMap
of String
property names to EntityProperty
data
typed values representing the properties of a table entity.public Object getResult()
Object
reference which represents the result returned by the table operation.public <T> T getResultAsType()
T
reference which represents the result returned by the table operation.protected void setEtag(String etag)
etag
- A String
containing an ETag to associate with the table operation results.protected void setHttpStatusCode(int httpStatusCode)
httpStatusCode
- The HTTP status code value to associate with the table operation results.protected void setProperties(HashMap<String,EntityProperty> properties)
properties
- A java.util.HashMap
of String
property names to EntityProperty
data
typed values representing the properties of a table entity to associate with the table operation.protected void setResult(Object result)
result
- An instance of a result Object
to associate with the table operation.protected void updateResultObject(TableEntity ent) throws UnsupportedEncodingException
TableEntity
.ent
- An instance of an object implementing TableEntity
to associate with the table operation.UnsupportedEncodingException
Copyright © 2019. All rights reserved.