类 NettyHandler

  • 所有已实现的接口:
    org.jboss.netty.channel.ChannelDownstreamHandler, org.jboss.netty.channel.ChannelHandler, org.jboss.netty.channel.ChannelUpstreamHandler

    @Sharable
    public class NettyHandler
    extends org.jboss.netty.channel.SimpleChannelHandler
    NettyHandler
    • 嵌套类概要

      • 从接口继承的嵌套类/接口 org.jboss.netty.channel.ChannelHandler

        org.jboss.netty.channel.ChannelHandler.Sharable
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      void channelConnected(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ChannelStateEvent e)  
      void channelDisconnected(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ChannelStateEvent e)  
      void exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ExceptionEvent e)  
      Map<String,Channel> getChannels()  
      void messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.MessageEvent e)  
      void writeRequested(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.MessageEvent e)  
      • 从类继承的方法 org.jboss.netty.channel.SimpleChannelHandler

        bindRequested, channelBound, channelClosed, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, closeRequested, connectRequested, disconnectRequested, handleDownstream, handleUpstream, setInterestOpsRequested, unbindRequested, writeComplete
    • 方法详细资料

      • channelConnected

        public void channelConnected(org.jboss.netty.channel.ChannelHandlerContext ctx,
                                     org.jboss.netty.channel.ChannelStateEvent e)
                              throws Exception
        覆盖:
        channelConnected 在类中 org.jboss.netty.channel.SimpleChannelHandler
        抛出:
        Exception
      • channelDisconnected

        public void channelDisconnected(org.jboss.netty.channel.ChannelHandlerContext ctx,
                                        org.jboss.netty.channel.ChannelStateEvent e)
                                 throws Exception
        覆盖:
        channelDisconnected 在类中 org.jboss.netty.channel.SimpleChannelHandler
        抛出:
        Exception
      • messageReceived

        public void messageReceived(org.jboss.netty.channel.ChannelHandlerContext ctx,
                                    org.jboss.netty.channel.MessageEvent e)
                             throws Exception
        覆盖:
        messageReceived 在类中 org.jboss.netty.channel.SimpleChannelHandler
        抛出:
        Exception
      • writeRequested

        public void writeRequested(org.jboss.netty.channel.ChannelHandlerContext ctx,
                                   org.jboss.netty.channel.MessageEvent e)
                            throws Exception
        覆盖:
        writeRequested 在类中 org.jboss.netty.channel.SimpleChannelHandler
        抛出:
        Exception
      • exceptionCaught

        public void exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx,
                                    org.jboss.netty.channel.ExceptionEvent e)
                             throws Exception
        覆盖:
        exceptionCaught 在类中 org.jboss.netty.channel.SimpleChannelHandler
        抛出:
        Exception