com.googlecode.xremoting.core.commonshttpclient
Class CommonsHttpClientRequester

java.lang.Object
  extended by com.googlecode.xremoting.core.commonshttpclient.CommonsHttpClientRequester
All Implemented Interfaces:
Requester

public class CommonsHttpClientRequester
extends Object
implements Requester

Implementation of Requester for commons-httpclient. Needs a configured HttpClient instance.

Author:
Roman Puchkovskiy

Constructor Summary
CommonsHttpClientRequester(org.apache.commons.httpclient.HttpClient httpClient, String url)
          Creates a new CommonsHttpClientRequester instance using a pre-configured HttpClient and URL of remote service which is accessible using HTTP(s).
 
Method Summary
protected  void configureMethod(org.apache.commons.httpclient.methods.PostMethod method)
           
 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

CommonsHttpClientRequester

public CommonsHttpClientRequester(org.apache.commons.httpclient.HttpClient httpClient,
                                  String url)
Creates a new CommonsHttpClientRequester instance using a pre-configured HttpClient and URL of remote service which is accessible using HTTP(s).

Parameters:
httpClient - HttpClient instance
url - remote 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

configureMethod

protected void configureMethod(org.apache.commons.httpclient.methods.PostMethod method)


Copyright © 2013. All Rights Reserved.