com.googlecode.xremoting.core.http
Class HttpRequester

java.lang.Object
  extended by 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

Constructor Summary
HttpRequester(HttpConnectionFactory httpConnectionFactory, String url)
          Creates a new instance using the supplied HttpConnectionFactory and URL of the service available via HTTP(s).
 
Method Summary
 Request createRequest()
          Creates and initializes a new request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 from
url - service URL
Method Detail

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 © 2013. All Rights Reserved.