|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.rackspacecloud.client.cloudfiles.FilesResponse
public class FilesResponse
Field Summary | |
---|---|
protected org.apache.http.HttpEntity |
entity
|
protected static org.apache.log4j.Logger |
logger
|
protected org.apache.http.HttpResponse |
response
|
Constructor Summary | |
---|---|
FilesResponse(org.apache.http.HttpResponse response)
|
Method Summary | |
---|---|
long |
getAccountBytesUsed()
Get the number of bytes used by the container |
int |
getAccountContainerCount()
Get the number of objects in the header |
java.lang.String |
getAuthToken()
This method makes no assumptions about the user having been logged in. |
long |
getContainerBytesUsed()
Get the number of bytes used by the container |
int |
getContainerObjectCount()
Get the number of objects in the header |
java.lang.String |
getContentEncoding()
|
java.lang.String |
getContentLength()
Get the content length of the response (as reported in the header) |
java.lang.String |
getContentType()
Get the content type |
java.lang.String |
getETag()
The Etag is the same as the objects MD5SUM |
java.lang.String |
getLastModified()
The last modified header |
byte[] |
getResponseBody()
Get the body of the response as a byte array |
java.io.InputStream |
getResponseBodyAsStream()
Get the response body as a Stream |
java.lang.String |
getResponseBodyAsString()
Returns the response body as text |
org.apache.http.Header |
getResponseHeader(java.lang.String headerName)
Returns the specified response header. |
org.apache.http.Header[] |
getResponseHeaders()
The HTTP headers from the response |
org.apache.http.Header[] |
getResponseHeaders(java.lang.String headerName)
Returns the response headers with the given name. |
int |
getStatusCode()
Get the HTTP status code |
org.apache.http.StatusLine |
getStatusLine()
The HTTP Status line (both the status code and the status message). |
java.lang.String |
getStatusMessage()
Get the HTTP status message |
java.lang.String |
getStorageURL()
This method makes no assumptions about the user having been logged in. |
boolean |
loginSuccess()
Checks to see if the user managed to login with their credentials. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected org.apache.http.HttpResponse response
protected org.apache.http.HttpEntity entity
protected static org.apache.log4j.Logger logger
Constructor Detail |
---|
public FilesResponse(org.apache.http.HttpResponse response)
response
- The HttpResponse generatedMethod Detail |
---|
public boolean loginSuccess()
public java.lang.String getAuthToken()
public java.lang.String getStorageURL()
public java.lang.String getContentType()
public java.lang.String getContentLength()
public java.lang.String getETag()
public java.lang.String getLastModified()
public org.apache.http.Header[] getResponseHeaders()
public org.apache.http.StatusLine getStatusLine()
public int getStatusCode()
public java.lang.String getStatusMessage()
public java.lang.String getResponseBodyAsString() throws java.io.IOException
java.io.IOException
public java.io.InputStream getResponseBodyAsStream() throws java.io.IOException
java.io.IOException
public byte[] getResponseBody() throws java.io.IOException
java.io.IOException
public org.apache.http.Header getResponseHeader(java.lang.String headerName)
headerName
- - The name of the header to be returned.
public int getContainerObjectCount()
public long getContainerBytesUsed()
public int getAccountContainerCount()
public long getAccountBytesUsed()
public org.apache.http.Header[] getResponseHeaders(java.lang.String headerName)
headerName
- - the name of the headers to be returned.
public java.lang.String getContentEncoding()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |