org.restlet.engine.connector
Class HttpClientHelper

java.lang.Object
  extended by org.restlet.engine.Helper
      extended by org.restlet.engine.RestletHelper<T>
          extended by org.restlet.engine.ConnectorHelper<T>
              extended by org.restlet.engine.connector.BaseHelper<T>
                  extended by org.restlet.engine.connector.ConnectionHelper<Client>
                      extended by org.restlet.engine.connector.ClientConnectionHelper
                          extended by org.restlet.engine.connector.HttpClientHelper

public class HttpClientHelper
extends ClientConnectionHelper

HTTP client helper based on NIO blocking sockets.

Author:
Jerome Louvel

Field Summary
 
Fields inherited from class org.restlet.engine.connector.ClientConnectionHelper
CONNECTOR_LATCH
 
Fields inherited from class org.restlet.engine.connector.BaseHelper
clientSide, controller, inboundMessages, outboundMessages
 
Constructor Summary
HttpClientHelper(Client client)
          Constructor.
 
Method Summary
 InboundWay createInboundWay(Connection<Client> connection, int bufferSize)
          Creates an inbound way for the given connection.
 OutboundWay createOutboundWay(Connection<Client> connection, int bufferSize)
          Creates an outbound way for the given connection.
 
Methods inherited from class org.restlet.engine.connector.ClientConnectionHelper
createConnection, createController, createSocketChannel, createSocketChannel, doHandleInbound, doHandleOutbound, getBestConnection, getProxyHost, getProxyPort, getSocketAddress, getSocketConnectTimeoutMs, handle, handleInbound, handleOutbound, isControllerDaemon, isProxying, start, stop, unblock
 
Methods inherited from class org.restlet.engine.connector.ConnectionHelper
addOutboundMessage, checkin, checkout, configure, createConnectionPool, doFinishStop, doGracefulStop, getConnectionPool, getConnections, getInitialConnections, getMaxConnectionsPerHost, getMaxTotalConnections, getSocketLingerTimeMs, getSocketReceiveBufferSize, getSocketSendBufferSize, getSocketTrafficClass, isPersistingConnections, isPipeliningConnections, isPooledConnection, isSocketKeepAlive, isSocketNoDelay, isSocketOobInline, isSocketReuseAddress
 
Methods inherited from class org.restlet.engine.connector.BaseHelper
control, createControllerService, createRequest, createWorkerService, execute, getController, getControllerSleepTimeMs, getInboundBufferSize, getInboundMessages, getLowThreads, getMaxIoIdleTimeMs, getMaxQueued, getMaxThreadIdleTimeMs, getMaxThreads, getMinThreads, getOutboundBufferSize, getOutboundMessages, getRequest, getThrottleTimeMs, getTraceStream, getTransport, getWorkerService, handleInbound, handleOutbound, hasWorkerThreads, isClientSide, isDirectBuffers, isServerSide, isTracing, isWorkerServiceOverloaded, onInboundError, onOutboundError, traceWorkerService
 
Methods inherited from class org.restlet.engine.ConnectorHelper
getConnectorService, getContext, getProtocols, update
 
Methods inherited from class org.restlet.engine.RestletHelper
getAttributes, getHelped, getHelpedParameters, getLogger, getMetadataService, setHelped
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpClientHelper

public HttpClientHelper(Client client)
Constructor.

Parameters:
client - The client to help.
Method Detail

createInboundWay

public InboundWay createInboundWay(Connection<Client> connection,
                                   int bufferSize)
Description copied from class: ConnectionHelper
Creates an inbound way for the given connection.

Specified by:
createInboundWay in class ConnectionHelper<Client>
Parameters:
connection - The parent connection.
bufferSize - The byte buffer size.
Returns:
The inbound way created.

createOutboundWay

public OutboundWay createOutboundWay(Connection<Client> connection,
                                     int bufferSize)
Description copied from class: ConnectionHelper
Creates an outbound way for the given connection.

Specified by:
createOutboundWay in class ConnectionHelper<Client>
Parameters:
connection - The parent connection.
bufferSize - The byte buffer size.
Returns:
The outbound way created.


Copyright © 2005-2013 Restlet.