public class XmlRpcUtils extends Object
Constructor and Description |
---|
XmlRpcUtils() |
Modifier and Type | Method and Description |
---|---|
static <T> KeyValuePairCompat<T,org.apache.commons.httpclient.HttpClient> |
getConnection(String hostName,
int port,
int clientTimeOut,
Class<T> type,
boolean isSecure)
wrapper for the apache xmlrpc client factory.
|
static void |
shutDownConnection(org.apache.commons.httpclient.HttpClient httpClient) |
public static <T> KeyValuePairCompat<T,org.apache.commons.httpclient.HttpClient> getConnection(String hostName, int port, int clientTimeOut, Class<T> type, boolean isSecure)
T
- the type of the instance for the interfacehostName
- - the host to connect toport
- - the port to connect toclientTimeOut
- - the time out for the connectiontype
- - the instance type of the interface for this connectionisSecure
- - if a connection should be https or httppublic static void shutDownConnection(org.apache.commons.httpclient.HttpClient httpClient)
Copyright © 2012. All Rights Reserved.