Package com.foxinmy.weixin4j.socket
Class WeixinServerInitializer
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
-
- com.foxinmy.weixin4j.socket.WeixinServerInitializer
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelInboundHandler
public class WeixinServerInitializer extends io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
微信消息服务器初始化- Since:
- JDK 1.6
- Author:
- jinyu(foxinmy@gmail.com)
-
-
Constructor Summary
Constructors Constructor Description WeixinServerInitializer(Map<String,AesToken> aesTokenMap, WeixinMessageDispatcher messageDispatcher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAesToken(AesToken asetoken)
protected void
initChannel(io.netty.channel.socket.SocketChannel channel)
-
Methods inherited from class io.netty.channel.ChannelInitializer
channelRegistered, exceptionCaught, handlerAdded, handlerRemoved
-
-
-
-
Constructor Detail
-
WeixinServerInitializer
public WeixinServerInitializer(Map<String,AesToken> aesTokenMap, WeixinMessageDispatcher messageDispatcher)
-
-
Method Detail
-
addAesToken
public void addAesToken(AesToken asetoken)
-
initChannel
protected void initChannel(io.netty.channel.socket.SocketChannel channel)
- Specified by:
initChannel
in classio.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
-
-