public class HttpsClientHelper extends ClientConnectionHelper
Parameter name | Value type | Default value | Description |
---|---|---|---|
sslContextFactory | String | org.restlet.ext.ssl.DefaultSslContextFactory | Let you specify a SslContextFactory qualified class name as a
parameter, or an instance as an attribute for a more complete and flexible
SSL context setting. |
DefaultSslContextFactory
class.CONNECTOR_LATCH
clientSide, controller, inboundMessages, outboundMessages
Constructor and Description |
---|
HttpsClientHelper(Client client)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Connection<Client> |
createConnection(SocketChannel socketChannel,
ConnectionController controller,
InetSocketAddress socketAddress)
Creates a connection associated to the given socket.
|
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.
|
protected SSLContext |
getSslContext()
Returns the SSL context.
|
protected void |
setSslContext(SSLContext sslContext)
Sets the SSL context.
|
void |
start()
Start callback.
|
createController, createSocketChannel, createSocketChannel, doHandleInbound, doHandleOutbound, getBestConnection, getProxyHost, getProxyPort, getSocketAddress, getSocketConnectTimeoutMs, handle, handleInbound, handleOutbound, isControllerDaemon, isProxying, stop, unblock
addOutboundMessage, checkin, checkout, configure, createConnectionPool, doFinishStop, doGracefulStop, getConnectionPool, getConnections, getInitialConnections, getMaxConnectionsPerHost, getMaxTotalConnections, getSocketLingerTimeMs, getSocketReceiveBufferSize, getSocketSendBufferSize, getSocketTrafficClass, isPersistingConnections, isPipeliningConnections, isPooledConnection, isSocketKeepAlive, isSocketNoDelay, isSocketOobInline, isSocketReuseAddress
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
getConnectorService, getContext, getProtocols, update
getAttributes, getHelped, getHelpedParameters, getLogger, getMetadataService, setHelped
public HttpsClientHelper(Client client)
client
- The client to help.protected Connection<Client> createConnection(SocketChannel socketChannel, ConnectionController controller, InetSocketAddress socketAddress) throws IOException
ConnectionHelper
createConnection
in class ClientConnectionHelper
socketChannel
- The underlying NIO socket channel.controller
- The underlying IO controller.socketAddress
- The associated IP address.IOException
public InboundWay createInboundWay(Connection<Client> connection, int bufferSize)
ConnectionHelper
createInboundWay
in class ConnectionHelper<Client>
connection
- The parent connection.bufferSize
- The byte buffer size.public OutboundWay createOutboundWay(Connection<Client> connection, int bufferSize)
ConnectionHelper
createOutboundWay
in class ConnectionHelper<Client>
connection
- The parent connection.bufferSize
- The byte buffer size.protected SSLContext getSslContext()
protected void setSslContext(SSLContext sslContext)
sslContext
- The SSL context.public void start() throws Exception
RestletHelper
start
in class ClientConnectionHelper
Exception
Copyright © 2005–2013. All rights reserved.