public class ClientUtil extends Object
Constructor and Description |
---|
ClientUtil() |
Modifier and Type | Method and Description |
---|---|
static org.apache.http.client.HttpClient |
getClient(String userId,
String password)
Returns an instance of an HttpClient.
|
static org.dom4j.Document |
getResultDom4jDocument(org.apache.http.client.HttpClient client,
org.apache.http.client.methods.HttpUriRequest callMethod)
Submits an HTTP result with the provided HTTPMethod and returns a dom4j document of the response
|
public static org.apache.http.client.HttpClient getClient(String userId, String password)
public static org.dom4j.Document getResultDom4jDocument(org.apache.http.client.HttpClient client, org.apache.http.client.methods.HttpUriRequest callMethod) throws ServiceException
callMethod
- ServiceException
Copyright © 2017 Hitachi Vantara. All rights reserved.