public interface HTTPClient
InputStream
on an
HTTP URI.Modifier and Type | Method and Description |
---|---|
void |
close()
Release all static resources help by the instance.
|
String |
getActualDocumentURI()
Returns the actual URI from which the document was fetched.
|
long |
getContentLength() |
String |
getContentType()
The value of the Content-Type header reported by the server.
|
void |
init(HTTPClientConfiguration configuration)
Initializes the HTTP client.
|
InputStream |
openInputStream(String uri)
Opens the input stream for the given target URI.
|
void init(HTTPClientConfiguration configuration)
configuration
- configuration for the HTTP Client.InputStream openInputStream(String uri) throws IOException
uri
- target URI.IOException
- if any error occurs while reading the URI content.void close()
String getContentType()
long getContentLength()
String getActualDocumentURI()
Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.