com.googlecode.xremoting.core.http
Class HttpRequester
java.lang.Object
com.googlecode.xremoting.core.http.HttpRequester
- All Implemented Interfaces:
- Requester
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.
- Author:
- Roman Puchkovskiy
- See Also:
HttpConnectionFactory
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpRequester
public HttpRequester(HttpConnectionFactory httpConnectionFactory,
String url)
- Creates a new instance using the supplied
HttpConnectionFactory
and URL of the service available via HTTP(s).
- Parameters:
httpConnectionFactory - factory to get connections fromurl - service URL
createRequest
public Request createRequest()
throws IOException
- Description copied from interface:
Requester
- Creates and initializes a new request.
- Specified by:
createRequest in interface Requester
- Returns:
- request
- Throws:
IOException - if input/output error occurs
Copyright © 2010. All Rights Reserved.