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()
HttpResponse
getResponseURI
in interface HttpResponse
public boolean isCached()
isCached
in interface HttpResponse
public boolean isFailed()
isFailed
in interface HttpResponse
public boolean isNotFound()
isNotFound
in interface HttpResponse
public boolean isNotPermitted()
isNotPermitted
in interface HttpResponse
public InputStream getResponse() throws IOException
getResponse
in interface HttpResponse
IOException
public String getContentType()
HttpResponse
getContentType
in interface HttpResponse
HttpResponse.getCharset()
,
HttpResponse.getMIMEType()
public String getCharset()
HttpResponse
getCharset
in interface HttpResponse
public String getMIMEType()
HttpResponse
getMIMEType
in interface HttpResponse
public String[] getHeaders(String name)
HttpResponse
getHeaders
in interface HttpResponse
name
- the HTTP response header to retreive. Must not be null
, or an
IllegalArgumentException
will be thrown.null
.public String getStatusMessage()
getStatusMessage
in interface HttpResponse
public int getStatusCode()
getStatusCode
in interface HttpResponse
public void finish()
finish
in interface HttpResponse
Copyright © 2003–2020 Atlassian. All rights reserved.