|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.noderunner.amazon.s3.Response
public class Response
The parent class of all other Responses.
Returns status codes that should be checked.
Method Summary | |
---|---|
void |
assertOk()
Throws an IllegalStateException if not 200-level OK. |
int |
getContentLength()
Returns content length of the response. |
java.lang.String |
getHeaderField(java.lang.String field)
Returns an HTTP header field from the response. |
Headers |
getHeaders()
Returns all HTTP headers. |
int |
getResponseCode()
Returns the HTTP response code. |
java.lang.String |
getResponseMessage()
Returns the HTTP response message. |
boolean |
isNotFound()
Returns true if processing returned 404. |
boolean |
isOk()
Returns true if processing was 200-level OK. |
protected void |
parse(org.xml.sax.ContentHandler handler)
Parses the response. |
java.lang.String |
toString()
Returns a string representation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public int getResponseCode() throws java.io.IOException
java.io.IOException
public java.lang.String getResponseMessage() throws java.io.IOException
java.io.IOException
public int getContentLength()
public void assertOk()
public java.lang.String getHeaderField(java.lang.String field)
public Headers getHeaders()
public boolean isOk()
public boolean isNotFound()
public java.lang.String toString()
toString
in class java.lang.Object
protected void parse(org.xml.sax.ContentHandler handler) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |