org.kuali.rice.ksb.messaging
Class HttpClientHelper

java.lang.Object
  extended by org.kuali.rice.ksb.messaging.HttpClientHelper

public class HttpClientHelper
extends Object

Contains some utility methods for dealing with configuration of the Commons HttpClient library. Specifically, HttpClient parameters are typed, so we can't just pipe the String values from or configuration through. Instead we need to know the type of all the different HttpClient parameters and set the parameter accordingly.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
HttpClientHelper()
           
 
Method Summary
static Class getParameterType(String parameterName)
          Returns the expected type of the given HttpClient parameter.
static void setParameter(org.apache.commons.httpclient.params.HttpParams params, String paramName, String paramValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpClientHelper

public HttpClientHelper()
Method Detail

setParameter

public static void setParameter(org.apache.commons.httpclient.params.HttpParams params,
                                String paramName,
                                String paramValue)

getParameterType

public static Class getParameterType(String parameterName)
Returns the expected type of the given HttpClient parameter. String is the default.



Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.