public class NettySslTransport extends NettyTcpTransport implements SSLTransport
Constructor and Description |
---|
NettySslTransport(TransportListener listener,
URI remoteLocation,
TransportOptions options)
Create a new transport instance
|
NettySslTransport(URI remoteLocation,
TransportOptions options)
Create a new transport instance
|
Modifier and Type | Method and Description |
---|---|
protected void |
configureChannel(io.netty.channel.Channel channel) |
Principal |
getLocalPrincipal() |
protected int |
getRemotePort() |
TransportOptions |
getTransportOptions() |
protected void |
handleConnected(io.netty.channel.Channel channel) |
allocateSendBuffer, close, configureNetty, connect, connectionEstablished, connectionFailed, getRemoteHost, getRemoteLocation, getTransportListener, isConnected, send, setTransportListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
allocateSendBuffer, close, connect, getRemoteLocation, getTransportListener, isConnected, send, setTransportListener
public NettySslTransport(URI remoteLocation, TransportOptions options)
remoteLocation
- the URI that defines the remote resource to connect to.options
- the transport options used to configure the socket connection.public NettySslTransport(TransportListener listener, URI remoteLocation, TransportOptions options)
listener
- the TransportListener that will receive events from this Transport.remoteLocation
- the URI that defines the remote resource to connect to.options
- the transport options used to configure the socket connection.protected void configureChannel(io.netty.channel.Channel channel) throws Exception
configureChannel
in class NettyTcpTransport
Exception
protected void handleConnected(io.netty.channel.Channel channel) throws Exception
handleConnected
in class NettyTcpTransport
Exception
public TransportOptions getTransportOptions()
getTransportOptions
in interface Transport
getTransportOptions
in class NettyTcpTransport
protected int getRemotePort()
getRemotePort
in class NettyTcpTransport
public Principal getLocalPrincipal()
getLocalPrincipal
in interface SSLTransport
Copyright © 2013–2016 The Apache Software Foundation. All rights reserved.