|
Restlet Framework 2.2.3 OSGi Environments |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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
public class HttpsClientHelper
HTTPS client helper based on NIO blocking sockets. Here is the list of SSL related parameters that are also supported:
Parameter name | Value type | Default value | Description |
---|---|---|---|
sslContextFactory | String | org.restlet.engine.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.
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 | |
---|---|
HttpsClientHelper(Client client)
Constructor. |
Method Summary | |
---|---|
org.restlet.ext.nio.internal.connection.Connection<Client> |
createConnection(SocketChannel socketChannel,
org.restlet.ext.nio.internal.controller.ConnectionController controller,
InetSocketAddress socketAddress)
Creates a connection associated to the given socket. |
org.restlet.ext.nio.internal.way.InboundWay |
createInboundWay(org.restlet.ext.nio.internal.connection.Connection<Client> connection,
int bufferSize)
Creates an inbound way for the given connection. |
org.restlet.ext.nio.internal.way.OutboundWay |
createOutboundWay(org.restlet.ext.nio.internal.connection.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()
|
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.engine.connector.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 |
---|
public HttpsClientHelper(Client client)
client
- The client to help.Method Detail |
---|
public org.restlet.ext.nio.internal.connection.Connection<Client> createConnection(SocketChannel socketChannel, org.restlet.ext.nio.internal.controller.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 org.restlet.ext.nio.internal.way.InboundWay createInboundWay(org.restlet.ext.nio.internal.connection.Connection<Client> connection, int bufferSize)
ConnectionHelper
createInboundWay
in class ConnectionHelper<Client>
connection
- The parent connection.bufferSize
- The byte buffer size.
public org.restlet.ext.nio.internal.way.OutboundWay createOutboundWay(org.restlet.ext.nio.internal.connection.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
start
in class ClientConnectionHelper
Exception
|
Restlet Framework 2.2.3 OSGi Environments |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |