Package org.restlet.ext.nio
Class HttpClientHelper
- java.lang.Object
-
@Deprecated public class HttpClientHelper extends ClientConnectionHelper
Deprecated.Will be removed to favor lower-level network extensions allowing more control at the Restlet API level.HTTP client helper based on NIO blocking sockets.
-
-
Field Summary
-
Fields inherited from class org.restlet.ext.nio.ClientConnectionHelper
CONNECTOR_LATCH
-
Fields inherited from class org.restlet.ext.nio.BaseHelper
clientSide, controller, inboundMessages, outboundMessages
-
-
Constructor Summary
Constructors Constructor Description HttpClientHelper(Client client)Deprecated.Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description InboundWaycreateInboundWay(Connection<Client> connection, int bufferSize)Deprecated.Creates an inbound way for the given connection.OutboundWaycreateOutboundWay(Connection<Client> connection, int bufferSize)Deprecated.Creates an outbound way for the given connection.-
Methods inherited from class org.restlet.ext.nio.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.ext.nio.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.ext.nio.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.connector.ConnectorHelper
getConnectorService, getContext, getProtocols, update
-
Methods inherited from class org.restlet.engine.RestletHelper
getAttributes, getHelped, getHelpedParameters, getLogger, getMetadataService, setHelped
-
-
-
-
Constructor Detail
-
HttpClientHelper
public HttpClientHelper(Client client)
Deprecated.Constructor.- Parameters:
client- The client to help.
-
-
Method Detail
-
createInboundWay
public InboundWay createInboundWay(Connection<Client> connection, int bufferSize)
Deprecated.Description copied from class:ConnectionHelperCreates an inbound way for the given connection.- Specified by:
createInboundWayin classConnectionHelper<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)
Deprecated.Description copied from class:ConnectionHelperCreates an outbound way for the given connection.- Specified by:
createOutboundWayin classConnectionHelper<Client>- Parameters:
connection- The parent connection.bufferSize- The byte buffer size.- Returns:
- The outbound way created.
-
-