public class NettyWsTransport extends NettyTcpTransport
NettyTcpTransport.NettyDefaultHandler<E>, NettyTcpTransport.NettyTcpTransportHandlerbootstrap, channel, DEFAULT_MAX_FRAME_SIZE, group, listener, maxFrameSize, SHUTDOWN_TIMEOUT| Constructor and Description |
|---|
NettyWsTransport(TransportListener listener,
URI remoteLocation,
TransportOptions options,
boolean secure)
Create a new transport instance
|
NettyWsTransport(URI remoteLocation,
TransportOptions options,
boolean secure)
Create a new transport instance
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAdditionalHandlers(io.netty.channel.ChannelPipeline pipeline) |
protected io.netty.channel.ChannelInboundHandlerAdapter |
createChannelHandler() |
protected void |
handleConnected(io.netty.channel.Channel channel) |
void |
send(io.netty.buffer.ByteBuf output)
Sends a chunk of data over the Transport connection.
|
allocateSendBuffer, checkConnected, close, connect, getLocalPrincipal, getMaxFrameSize, getRemoteHost, getRemoteLocation, getRemotePort, getTransportListener, getTransportOptions, handleChannelInactive, handleException, isConnected, isSecure, setMaxFrameSize, setTransportListenerpublic NettyWsTransport(URI remoteLocation, TransportOptions options, boolean secure)
remoteLocation - the URI that defines the remote resource to connect to.options - the transport options used to configure the socket connection.secure - should the transport enable an SSL layer.public NettyWsTransport(TransportListener listener, URI remoteLocation, TransportOptions options, boolean secure)
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.secure - should the transport enable an SSL layer.public void send(io.netty.buffer.ByteBuf output)
throws IOException
Transportsend in interface Transportsend in class NettyTcpTransportoutput - The buffer of data that is to be transmitted.IOException - if an error occurs during the send operation.protected io.netty.channel.ChannelInboundHandlerAdapter createChannelHandler()
createChannelHandler in class NettyTcpTransportprotected void addAdditionalHandlers(io.netty.channel.ChannelPipeline pipeline)
addAdditionalHandlers in class NettyTcpTransportprotected void handleConnected(io.netty.channel.Channel channel)
throws Exception
handleConnected in class NettyTcpTransportExceptionCopyright © 2013–2018 The Apache Software Foundation. All rights reserved.