Interface HttpResponse
-
- All Known Implementing Classes:
HttpClientHttpResponse
@Deprecated public interface HttpResponse
Deprecated.since 7.0.1 seeHttpRetrievalServicefor details
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidfinish()Deprecated.StringgetCharset()Deprecated.Returns the charset of the response.StringgetContentType()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.StringgetMIMEType()Deprecated.Returns the MIME type of the response.InputStreamgetResponse()Deprecated.URIgetResponseURI()Deprecated.Returns the URI of the site that the response came from.intgetStatusCode()Deprecated.StringgetStatusMessage()Deprecated.booleanisCached()Deprecated.booleanisFailed()Deprecated.booleanisNotFound()Deprecated.booleanisNotPermitted()Deprecated.
-
-
-
Method Detail
-
isCached
boolean isCached()
Deprecated.
-
isFailed
boolean isFailed()
Deprecated.
-
isNotFound
boolean isNotFound()
Deprecated.
-
isNotPermitted
boolean isNotPermitted()
Deprecated.
-
getResponse
InputStream getResponse() throws IOException
Deprecated.- Throws:
IOException
-
getResponseURI
URI getResponseURI()
Deprecated.Returns the URI of the site that the response came from. The URI will be absolute if the host configuration has been set and relative otherwise.- Returns:
- the URI of the response
- Since:
- 5.1.5
-
getCharset
String getCharset()
Deprecated.Returns the charset of the response.- Returns:
- the charset of the response, or null.
- Since:
- 5.1.5
-
getMIMEType
String getMIMEType()
Deprecated.Returns the MIME type of the response.- Returns:
- the MIME type of the response.
- Since:
- 5.1.5
-
getContentType
String getContentType()
Deprecated.Returns the type of the response content.- Returns:
- a string containing the MIME type and the charset of the response.
- See Also:
getCharset(),getMIMEType()
-
getHeaders
String[] getHeaders(String name)
Deprecated.Retrieves all HTTP response headers with the specified name and returns an array of their values.- Parameters:
name- the HTTP response header to retreive. Must not benull, or anIllegalArgumentExceptionwill be thrown.- Returns:
- an array of the header values found on the response, or an empty array. Must not return
null. - Throws:
IllegalArgumentException- if thenameparameter isnull- Since:
- 2.10
-
getStatusMessage
String getStatusMessage()
Deprecated.
-
getStatusCode
int getStatusCode()
Deprecated.
-
finish
void finish()
Deprecated.
-
-