public class HttpAutomationClient extends AbstractAutomationClient
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.http.client.HttpClient |
http |
protected int |
httpConnectionTimeout |
adapterManager, registry, requestInterceptor, url| Constructor and Description |
|---|
HttpAutomationClient(String url)
Instantiates a new
HttpAutomationClient with no timeout for the
HTTP connection and the default timeout for the wait of the asynchronous
thread pool termination: 2 seconds. |
HttpAutomationClient(String url,
int httpConnectionTimeout)
Instantiates a new
HttpAutomationClient with the given timeout in
milliseconds for the HTTP connection and the default timeout for the wait
of the asynchronous thread pool termination: 2 seconds. |
| Modifier and Type | Method and Description |
|---|---|
RestClient |
getRestClient()
Returns the
RestClient associated to this
HttpAutomationClient. |
org.apache.http.client.HttpClient |
http() |
protected Connector |
newConnector() |
void |
setProxy(String host,
int port) |
void |
shutdown()
Cleanup any resources held by this client.
|
asyncExec, connect, createSession, getAdapter, getBaseUrl, getRegistry, getRequestInterceptor, getSession, getSession, getSession, getSession, getSession, getSession, getSession, getSession, getSession, login, registerAdapter, registerPojoMarshaller, setBasicAuth, setRequestInterceptor, setSharedRegistryExpirationDelayprotected org.apache.http.client.HttpClient http
protected int httpConnectionTimeout
public HttpAutomationClient(String url)
HttpAutomationClient with no timeout for the
HTTP connection and the default timeout for the wait of the asynchronous
thread pool termination: 2 seconds.public HttpAutomationClient(String url, int httpConnectionTimeout)
HttpAutomationClient with the given timeout in
milliseconds for the HTTP connection and the default timeout for the wait
of the asynchronous thread pool termination: 2 seconds.public void setProxy(String host, int port)
public org.apache.http.client.HttpClient http()
public void shutdown()
AutomationClientshutdown in interface AutomationClientshutdown in class AbstractAutomationClientprotected Connector newConnector()
newConnector in class AbstractAutomationClientpublic RestClient getRestClient()
RestClient associated to this
HttpAutomationClient.Copyright © 2020. All rights reserved.