@ChannelHandler.Sharable public class WebSocketHandshakerHandler extends io.netty.channel.SimpleChannelInboundHandler<Object>
| 构造器和说明 |
|---|
WebSocketHandshakerHandler(ApiAuthentication authentication,
ApiComposeCallback4Stomp callback) |
WebSocketHandshakerHandler(ApiAuthentication authentication,
ApiComposeCallback4Stomp callback,
int sendInterval,
int receiveInterval) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
channelActive(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx) |
protected void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
Object msg) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker |
getHandshaker() |
void |
handlerAdded(io.netty.channel.ChannelHandlerContext ctx) |
void |
setHandshaker(io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker handshaker) |
channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredpublic WebSocketHandshakerHandler(ApiAuthentication authentication, ApiComposeCallback4Stomp callback)
public WebSocketHandshakerHandler(ApiAuthentication authentication, ApiComposeCallback4Stomp callback, int sendInterval, int receiveInterval)
public void handlerAdded(io.netty.channel.ChannelHandlerContext ctx)
handlerAdded 在接口中 io.netty.channel.ChannelHandlerhandlerAdded 在类中 io.netty.channel.ChannelHandlerAdapterpublic void setHandshaker(io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker handshaker)
public io.netty.handler.codec.http.websocketx.WebSocketClientHandshaker getHandshaker()
public void channelActive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelActive 在接口中 io.netty.channel.ChannelInboundHandlerchannelActive 在类中 io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelInactive 在接口中 io.netty.channel.ChannelInboundHandlerchannelInactive 在类中 io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause)
exceptionCaught 在接口中 io.netty.channel.ChannelHandlerexceptionCaught 在接口中 io.netty.channel.ChannelInboundHandlerexceptionCaught 在类中 io.netty.channel.ChannelInboundHandlerAdapterCopyright © 2024. All rights reserved.