public class HttpRequester extends Object implements Requester
Requester which uses HTTP as a transport protocol and
HttpURLConnection to work with it. HttpConnectionFactory
implementation is the one who actually opens connections.HttpConnectionFactory,
DefaultHttpConnectionFactory| Constructor and Description |
|---|
HttpRequester(HttpConnectionFactory httpConnectionFactory,
String url)
Creates a new instance using the supplied
HttpConnectionFactory
and URL of the service available via HTTP(s). |
| Modifier and Type | Method and Description |
|---|---|
Request |
createRequest()
Creates and initializes a new request.
|
public HttpRequester(HttpConnectionFactory httpConnectionFactory, String url)
HttpConnectionFactory
and URL of the service available via HTTP(s).httpConnectionFactory - factory to get connections fromurl - service URLpublic Request createRequest() throws IOException
RequestercreateRequest in interface RequesterIOException - if input/output error occursCopyright © 2015. All rights reserved.