|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface HttpResponse
| Method Summary | |
|---|---|
void |
finish()
|
java.lang.String |
getCharset()
Returns the charset of the response. |
java.lang.String |
getContentType()
Returns the type of the response content. |
java.lang.String[] |
getHeaders(java.lang.String name)
Retrieves all HTTP response headers with the specified name and returns an array of their values. |
java.lang.String |
getMIMEType()
Returns the MIME type of the response. |
java.io.InputStream |
getResponse()
|
java.net.URI |
getResponseURI()
Returns the URI of the site that the response came from. |
int |
getStatusCode()
|
java.lang.String |
getStatusMessage()
|
boolean |
isCached()
|
boolean |
isFailed()
|
boolean |
isNotFound()
|
boolean |
isNotPermitted()
|
| Method Detail |
|---|
boolean isCached()
boolean isFailed()
boolean isNotFound()
boolean isNotPermitted()
java.io.InputStream getResponse()
throws java.io.IOException
java.io.IOExceptionjava.net.URI getResponseURI()
java.lang.String getCharset()
java.lang.String getMIMEType()
java.lang.String getContentType()
getCharset(),
getMIMEType()java.lang.String[] getHeaders(java.lang.String name)
name - the HTTP response header to retreive. Must not be null, or an
IllegalArgumentException will be thrown.
null.
java.lang.IllegalArgumentException - if the name parameter is nulljava.lang.String getStatusMessage()
int getStatusCode()
void finish()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||