|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HTTPClient
Abstraction for opening an InputStream
on an
HTTP URI.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |