org.lastbamboo.common.http.client
Class CommonsHttpClientImpl

java.lang.Object
  extended by org.lastbamboo.common.http.client.CommonsHttpClientImpl
All Implemented Interfaces:
CommonsHttpClient

public final class CommonsHttpClientImpl
extends Object
implements CommonsHttpClient

An implementation of the Apache Commons HTTP client interface.


Constructor Summary
CommonsHttpClientImpl()
          Constructs a new Apache Commons HTTP client.
CommonsHttpClientImpl(org.apache.commons.httpclient.HttpConnectionManager connectionManager)
          Constructs a new Apache Commons HTTP client.
 
Method Summary
 int executeMethod(org.apache.commons.httpclient.HttpMethod method)
          Executes a given HTTP method (from Commons HTTP).
 org.apache.commons.httpclient.HttpConnectionManager getHttpConnectionManager()
          Returns this client's HTTP connection manager.
 org.apache.commons.httpclient.params.HttpClientParams getParams()
          Returns this client's parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommonsHttpClientImpl

public CommonsHttpClientImpl()
Constructs a new Apache Commons HTTP client.


CommonsHttpClientImpl

public CommonsHttpClientImpl(org.apache.commons.httpclient.HttpConnectionManager connectionManager)
Constructs a new Apache Commons HTTP client.

Parameters:
connectionManager - The Commons connection manager used to manage connections used by the underlying Commons HTTP client.
Method Detail

executeMethod

public int executeMethod(org.apache.commons.httpclient.HttpMethod method)
Executes a given HTTP method (from Commons HTTP).

Specified by:
executeMethod in interface CommonsHttpClient
Parameters:
method - The method to execute.
Returns:
The response code.

getParams

public org.apache.commons.httpclient.params.HttpClientParams getParams()
Returns this client's parameters.

Specified by:
getParams in interface CommonsHttpClient
Returns:
This client's parameters.

getHttpConnectionManager

public org.apache.commons.httpclient.HttpConnectionManager getHttpConnectionManager()
Returns this client's HTTP connection manager.

Specified by:
getHttpConnectionManager in interface CommonsHttpClient
Returns:
This client's HTTP connection manager.


Copyright © 2013 LittleShoot. All Rights Reserved.