com.googlecode.xremoting.core.commonshttpclient
Class CommonsHttpClientRequester
java.lang.Object
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). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 instanceurl - remote 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
configureMethod
protected void configureMethod(org.apache.commons.httpclient.methods.PostMethod method)
Copyright © 2012. All Rights Reserved.