public class HttpAutomationClient extends AsyncAutomationClient
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.http.client.HttpClient |
http |
protected int |
httpConnectionTimeout |
async, asyncAwaitTerminationTimeoutadapterManager, 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. |
HttpAutomationClient(String url,
int httpConnectionTimeout,
long asyncAwaitTerminationTimeout)
Instantiates a new
HttpAutomationClient with the given timeout in milliseconds for the HTTP connection
and the given timeout in milliseconds for the wait of the asynchronous thread pool termination. |
| 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.
|
asyncExecconnect, createSession, getAdapter, getBaseUrl, getRegistry, getRequestInterceptor, 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 HttpAutomationClient(String url, int httpConnectionTimeout, long asyncAwaitTerminationTimeout)
HttpAutomationClient with the given timeout in milliseconds for the HTTP connection
and the given timeout in milliseconds for the wait of the asynchronous thread pool termination.public org.apache.http.client.HttpClient http()
public void shutdown()
AutomationClientshutdown in interface AutomationClientshutdown in class AsyncAutomationClientprotected Connector newConnector()
newConnector in class AbstractAutomationClientpublic RestClient getRestClient()
RestClient associated to this
HttpAutomationClient.Copyright © 2018 Nuxeo. All rights reserved.