public interface HttpResponse
Modifier and Type | Method and Description |
---|---|
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() |
boolean isCached()
boolean isFailed()
boolean isNotFound()
boolean isNotPermitted()
java.io.InputStream getResponse() throws java.io.IOException
java.io.IOException
java.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 null
java.lang.String getStatusMessage()
int getStatusCode()
void finish()
Copyright © 2003-2014 Atlassian. All Rights Reserved.