org.restlet.engine
Class ClientHelper

java.lang.Object
  extended by org.restlet.engine.Helper
      extended by org.restlet.engine.RestletHelper<T>
          extended by org.restlet.engine.ConnectorHelper<Client>
              extended by org.restlet.engine.ClientHelper
Direct Known Subclasses:
HttpClientHelper, LocalClientHelper, RiapClientHelper

public class ClientHelper
extends ConnectorHelper<Client>

Client connector helper. Base client helper based on NIO non blocking sockets. Here is the list of parameters that are supported. They should be set in the Client's context before it is started:

Parameter name Value type Default value Description
socketConnectTimeoutMs int 0 The socket connection timeout or 0 for unlimited wait.

Author:
Jerome Louvel

Constructor Summary
ClientHelper(Client client)
          Constructor.
 
Method Summary
 int getSocketConnectTimeoutMs()
          Returns the connection timeout.
 
Methods inherited from class org.restlet.engine.ConnectorHelper
getConnectorService, getContext, getProtocols, start, stop, update
 
Methods inherited from class org.restlet.engine.RestletHelper
getAttributes, getHelped, getHelpedParameters, getLogger, getMetadataService, handle, setHelped
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientHelper

public ClientHelper(Client client)
Constructor.

Parameters:
client - The client to help.
Method Detail

getSocketConnectTimeoutMs

public int getSocketConnectTimeoutMs()
Returns the connection timeout.

Returns:
The connection timeout.


Copyright © 2005-2013 Restlet.