Package org.restlet.ext.nio
Class HttpsClientHelper
- java.lang.Object
-
- org.restlet.engine.Helper
-
- org.restlet.engine.RestletHelper<T>
-
- org.restlet.engine.connector.ConnectorHelper<T>
-
- org.restlet.ext.nio.BaseHelper<T>
-
- org.restlet.ext.nio.ConnectionHelper<Client>
-
- org.restlet.ext.nio.ClientConnectionHelper
-
- org.restlet.ext.nio.HttpsClientHelper
-
@Deprecated public class HttpsClientHelper extends ClientConnectionHelper
Deprecated.Will be removed to favor lower-level network extensions allowing more control at the Restlet API level.HTTPS client helper based on NIO blocking sockets. Here is the list of SSL related parameters that are also supported:
For the default SSL parameters see the Javadocs of theParameter name Value type Default value Description sslContextFactory String org.restlet.engine.ssl.DefaultSslContextFactory Let you specify a SslContextFactoryqualified class name as a parameter, or an instance as an attribute for a more complete and flexible SSL context setting.DefaultSslContextFactoryclass.
-
-
Field Summary
Fields Modifier and Type Field Description private javax.net.ssl.SSLContextsslContextDeprecated.The SSL context.-
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 HttpsClientHelper(Client client)Deprecated.Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Connection<Client>createConnection(java.nio.channels.SocketChannel socketChannel, ConnectionController controller, java.net.InetSocketAddress socketAddress)Deprecated.Creates a connection associated to the given socket.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.protected javax.net.ssl.SSLContextgetSslContext()Deprecated.Returns the SSL context.protected voidsetSslContext(javax.net.ssl.SSLContext sslContext)Deprecated.Sets the SSL context.voidstart()Deprecated.Start callback.-
Methods inherited from class org.restlet.ext.nio.ClientConnectionHelper
createController, createSocketChannel, createSocketChannel, doHandleInbound, doHandleOutbound, getBestConnection, getProxyHost, getProxyPort, getSocketAddress, getSocketConnectTimeoutMs, handle, handleInbound, handleOutbound, isControllerDaemon, isProxying, 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
-
HttpsClientHelper
public HttpsClientHelper(Client client)
Deprecated.Constructor.- Parameters:
client- The client to help.
-
-
Method Detail
-
createConnection
public Connection<Client> createConnection(java.nio.channels.SocketChannel socketChannel, ConnectionController controller, java.net.InetSocketAddress socketAddress) throws java.io.IOException
Deprecated.Description copied from class:ConnectionHelperCreates a connection associated to the given socket.- Overrides:
createConnectionin classClientConnectionHelper- Parameters:
socketChannel- The underlying NIO socket channel.controller- The underlying IO controller.socketAddress- The associated IP address.- Returns:
- The new connection.
- Throws:
java.io.IOException
-
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.
-
getSslContext
protected javax.net.ssl.SSLContext getSslContext()
Deprecated.Returns the SSL context.- Returns:
- The SSL context.
-
setSslContext
protected void setSslContext(javax.net.ssl.SSLContext sslContext)
Deprecated.Sets the SSL context.- Parameters:
sslContext- The SSL context.
-
start
public void start() throws java.lang.ExceptionDeprecated.Description copied from class:RestletHelperStart callback.- Overrides:
startin classClientConnectionHelper- Throws:
java.lang.Exception
-
-