Class MqttWebSocketServerInitializer
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
com.bytedesk.core.socket.mqtt.initializer.MqttWebSocketServerInitializer
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
public class MqttWebSocketServerInitializer
extends io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
- Author:
- bytedesk.com on 2019-07-05
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final ProtocolProcessprivate final io.netty.handler.ssl.SslContext -
Constructor Summary
ConstructorsConstructorDescriptionMqttWebSocketServerInitializer(io.netty.handler.ssl.SslContext sslCtx, ProtocolProcess protocolProcess, int maxPayloadSize) -
Method Summary
Modifier and TypeMethodDescriptionvoidinitChannel(io.netty.channel.socket.SocketChannel socketChannel) Methods inherited from class io.netty.channel.ChannelInitializer
channelRegistered, exceptionCaught, handlerAdded, handlerRemovedMethods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggeredMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, isSharable
-
Field Details
-
mSslCtx
private final io.netty.handler.ssl.SslContext mSslCtx -
mMaxPayloadSize
private final int mMaxPayloadSize -
mProtocolProcess
-
-
Constructor Details
-
MqttWebSocketServerInitializer
public MqttWebSocketServerInitializer(io.netty.handler.ssl.SslContext sslCtx, ProtocolProcess protocolProcess, int maxPayloadSize)
-
-
Method Details
-
initChannel
- Specified by:
initChannelin classio.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>- Throws:
Exception
-