|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.http.client.impl.base.RestClientBase
org.eclipse.smila.http.client.impl.DefaultRestClient
public class DefaultRestClient
Default implementation of RestClient.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.smila.http.client.impl.base.RestClientBase |
|---|
DEFAULT_HOSTANDPORT |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary |
|---|
| Methods inherited from class org.eclipse.smila.http.client.impl.base.RestClientBase |
|---|
createConnectErrorMessage, createUrl, delete, doRequest, get, getBulk, getHostAndPort, invoke, invoke, invoke, invoke, invokeAsMap, post, post, post, post, put, put, setClientParameter, setRequestExecutor, setRequestFactory, setResultHandler, shutdown |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public 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 host
public 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.
|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||