public class HttpUtil extends Object
Constructor and Description |
---|
HttpUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addCredentials(org.apache.commons.httpclient.HttpClient client,
VariableSpace space,
String hostname,
String port,
String webAppName,
String username,
String password) |
static void |
addProxy(org.apache.commons.httpclient.HttpClient client,
VariableSpace space,
String hostname,
String proxyHostname,
String proxyPort,
String nonProxyHosts) |
static String |
constructUrl(VariableSpace space,
String hostname,
String port,
String webAppName,
String serviceAndArguments) |
static String |
decodeBase64ZippedString(String loggingString64) |
static String |
execService(VariableSpace space,
String hostname,
String port,
String webAppName,
String serviceAndArguments,
String username,
String password,
String proxyHostname,
String proxyPort,
String nonProxyHosts) |
static String |
getPortSpecification(VariableSpace space,
String port) |
public static String execService(VariableSpace space, String hostname, String port, String webAppName, String serviceAndArguments, String username, String password, String proxyHostname, String proxyPort, String nonProxyHosts) throws Exception
Exception
public static String constructUrl(VariableSpace space, String hostname, String port, String webAppName, String serviceAndArguments) throws UnsupportedEncodingException
UnsupportedEncodingException
public static String getPortSpecification(VariableSpace space, String port)
public static void addProxy(org.apache.commons.httpclient.HttpClient client, VariableSpace space, String hostname, String proxyHostname, String proxyPort, String nonProxyHosts)
public static void addCredentials(org.apache.commons.httpclient.HttpClient client, VariableSpace space, String hostname, String port, String webAppName, String username, String password)
public static String decodeBase64ZippedString(String loggingString64) throws IOException
IOException