public interface HttpResponse
Modifier and Type | Method and Description |
---|---|
void |
finish() |
String |
getCharset()
Returns the charset of the response.
|
String |
getContentType()
Returns the type of the response content.
|
String[] |
getHeaders(String name)
Retrieves all HTTP response headers with the specified name and returns an array of their values.
|
String |
getMIMEType()
Returns the MIME type of the response.
|
InputStream |
getResponse() |
URI |
getResponseURI()
Returns the URI of the site that the response came from.
|
int |
getStatusCode() |
String |
getStatusMessage() |
boolean |
isCached() |
boolean |
isFailed() |
boolean |
isNotFound() |
boolean |
isNotPermitted() |
boolean isCached()
boolean isFailed()
boolean isNotFound()
boolean isNotPermitted()
InputStream getResponse() throws IOException
IOException
URI getResponseURI()
String getCharset()
String getMIMEType()
String getContentType()
getCharset()
,
getMIMEType()
String[] getHeaders(String name)
name
- the HTTP response header to retreive. Must not be null
, or an
IllegalArgumentException
will be thrown.null
.IllegalArgumentException
- if the name
parameter is null
String getStatusMessage()
int getStatusCode()
void finish()
Copyright © 2003–2015 Atlassian. All rights reserved.