public class DefaultRestClient extends RestClientBase
RestClient.DEFAULT_HOSTANDPORT| Constructor and Description |
|---|
DefaultRestClient()
Talk to a SMILA server on the same host on default port: http://localhost:8080.
|
DefaultRestClient(java.lang.String hostAndPort)
Talk to the given SMILA server.
|
DefaultRestClient(java.lang.String hostAndPort,
ClientConnectionManager connectionManager)
Talk to given SMILA server, using a given connection manager.
|
DefaultRestClient(java.lang.String hostAndPort,
int maxTotalConnections,
int maxConnectionsPerHost)
Talk to the given SMILA server, using a non-default connection configuration.
|
createConnectErrorMessage, createUrl, delete, doRequest, get, getBulk, getHostAndPort, invoke, invoke, invoke, invoke, invokeAsMap, post, post, post, post, put, put, setClientParameter, setRequestExecutor, setRequestFactory, setResultHandler, shutdownpublic DefaultRestClient()
public DefaultRestClient(java.lang.String hostAndPort)
hostAndPort - host and port of a SMILA service, in format "host:port". Don't include a trailing slash ("/").public DefaultRestClient(java.lang.String hostAndPort,
int maxTotalConnections,
int maxConnectionsPerHost)
hostAndPort - host and port of a SMILA service, in format "host:port". Don't include a trailing slash ("/").maxTotalConnections - maximum number of total HTTP connectionsmaxConnectionsPerHost - maximum number of connections per hostpublic DefaultRestClient(java.lang.String hostAndPort,
ClientConnectionManager connectionManager)
hostAndPort - host and port of a SMILA service, in format "host:port". Don't include a trailing slash ("/").connectionManager - an initialized Apache HttpClient connection manager.