类 SocketCmdAccessAuthHandler
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.SimpleChannelInboundHandler<BarMessage>
com.iohao.game.external.core.netty.handler.SocketCmdAccessAuthHandler
- 所有已实现的接口:
UserSessionsAware
,io.netty.channel.ChannelHandler
,io.netty.channel.ChannelInboundHandler
@Sharable
public class SocketCmdAccessAuthHandler
extends io.netty.channel.SimpleChannelInboundHandler<BarMessage>
implements UserSessionsAware
路由访问权限相关处理
- 作者:
- 渔民小镇
- 日期:
- 2023-05-05
-
嵌套类概要
从接口继承的嵌套类/接口 io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable
-
字段概要
-
构造器概要
-
方法概要
修饰符和类型方法说明protected void
channelRead0
(io.netty.channel.ChannelHandlerContext ctx, BarMessage message) protected boolean
notPass
(io.netty.channel.ChannelHandlerContext ctx, BarMessage message, boolean loginSuccess) protected boolean
reject
(io.netty.channel.ChannelHandlerContext ctx, BarMessage message) void
setUserSessions
(UserSessions<?, ?> userSessions) 框架会调用此方法,将 UserSessions 对象传入从类继承的方法 io.netty.channel.SimpleChannelInboundHandler
acceptInboundMessage, channelRead
从类继承的方法 io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
从类继承的方法 io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
-
字段详细资料
-
userSessions
-
-
构造器详细资料
-
SocketCmdAccessAuthHandler
public SocketCmdAccessAuthHandler()
-
-
方法详细资料
-
channelRead0
- 指定者:
channelRead0
在类中io.netty.channel.SimpleChannelInboundHandler<BarMessage>
-
reject
-
notPass
protected boolean notPass(io.netty.channel.ChannelHandlerContext ctx, BarMessage message, boolean loginSuccess) -
setUserSessions
从接口复制的说明:UserSessionsAware
框架会调用此方法,将 UserSessions 对象传入- 指定者:
setUserSessions
在接口中UserSessionsAware
- 参数:
userSessions
- userSessions
-