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)

Field Summary
private static Map<String,Class<?>> PARAM_TYPE_MAP
          A Map which defines the type for all non-String parameters for HttpClient.
 
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
 

Field Detail

PARAM_TYPE_MAP

private static final Map<String,Class<?>> PARAM_TYPE_MAP
A Map which defines the type for all non-String parameters for HttpClient.

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 © 2004-2011 The Kuali Foundation. All Rights Reserved.