HttpRetrievalService for details@Deprecated public class HttpClientHttpResponse extends Object implements HttpResponse
| Constructor and Description |
|---|
HttpClientHttpResponse(HttpRequest httpRequest,
org.apache.commons.httpclient.HttpMethod method)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
finish()
Deprecated.
|
String |
getCharset()
Deprecated.
Returns the charset of the response.
|
String |
getContentType()
Deprecated.
Returns the type of the response content.
|
String[] |
getHeaders(String name)
Deprecated.
Retrieves all HTTP response headers with the specified name and returns an array of their values.
|
String |
getMIMEType()
Deprecated.
Returns the MIME type of the response.
|
InputStream |
getResponse()
Deprecated.
|
URI |
getResponseURI()
Deprecated.
Returns the URI of the site that the response came from.
|
int |
getStatusCode()
Deprecated.
|
String |
getStatusMessage()
Deprecated.
|
boolean |
isCached()
Deprecated.
|
boolean |
isFailed()
Deprecated.
|
boolean |
isNotFound()
Deprecated.
|
boolean |
isNotPermitted()
Deprecated.
|
public HttpClientHttpResponse(HttpRequest httpRequest, org.apache.commons.httpclient.HttpMethod method)
public URI getResponseURI()
HttpResponsegetResponseURI in interface HttpResponsepublic boolean isCached()
isCached in interface HttpResponsepublic boolean isFailed()
isFailed in interface HttpResponsepublic boolean isNotFound()
isNotFound in interface HttpResponsepublic boolean isNotPermitted()
isNotPermitted in interface HttpResponsepublic InputStream getResponse() throws IOException
getResponse in interface HttpResponseIOExceptionpublic String getContentType()
HttpResponsegetContentType in interface HttpResponseHttpResponse.getCharset(),
HttpResponse.getMIMEType()public String getCharset()
HttpResponsegetCharset in interface HttpResponsepublic String getMIMEType()
HttpResponsegetMIMEType in interface HttpResponsepublic String[] getHeaders(String name)
HttpResponsegetHeaders in interface HttpResponsename - the HTTP response header to retreive. Must not be null, or an
IllegalArgumentException will be thrown.null.public String getStatusMessage()
getStatusMessage in interface HttpResponsepublic int getStatusCode()
getStatusCode in interface HttpResponsepublic void finish()
finish in interface HttpResponseCopyright © 2003–2021 Atlassian. All rights reserved.