SMILA 1.0 API documentation

org.eclipse.smila.http.client.impl
Class DefaultRestClient

java.lang.Object
  extended by org.eclipse.smila.http.client.impl.base.RestClientBase
      extended by org.eclipse.smila.http.client.impl.DefaultRestClient
All Implemented Interfaces:
RestClient

public class DefaultRestClient
extends RestClientBase

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

DefaultRestClient

public DefaultRestClient()
Talk to a SMILA server on the same host on default port: http://localhost:8080.


DefaultRestClient

public DefaultRestClient(java.lang.String hostAndPort)
Talk to the given SMILA server.

Parameters:
hostAndPort - host and port of a SMILA service, in format "host:port". Don't include a trailing slash ("/").

DefaultRestClient

public DefaultRestClient(java.lang.String hostAndPort,
                         int maxTotalConnections,
                         int maxConnectionsPerHost)
Talk to the given SMILA server, using a non-default connection configuration.

Parameters:
hostAndPort - host and port of a SMILA service, in format "host:port". Don't include a trailing slash ("/").
maxTotalConnections - maximum number of total HTTP connections
maxConnectionsPerHost - maximum number of connections per host

DefaultRestClient

public DefaultRestClient(java.lang.String hostAndPort,
                         ClientConnectionManager connectionManager)
Talk to given SMILA server, using a given connection manager.

Parameters:
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