it.jnrpe.net
Class JNRPEServerHandler

java.lang.Object
  extended by io.netty.channel.ChannelHandlerAdapter
      extended by io.netty.channel.ChannelInboundHandlerAdapter
          extended by it.jnrpe.net.JNRPEServerHandler
All Implemented Interfaces:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler

public class JNRPEServerHandler
extends io.netty.channel.ChannelInboundHandlerAdapter

Receives and handles connections to the JNRPE server.

Author:
Massimiliano Ziccardi

Nested Class Summary
 
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable
 
Constructor Summary
JNRPEServerHandler(CommandInvoker invoker, Collection<IJNRPEEventListener> eventListeners)
          Constructor.
 
Method Summary
 void channelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg)
           
 void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)
           
 
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
 
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
handlerAdded, handlerRemoved, isSharable
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
 

Constructor Detail

JNRPEServerHandler

public JNRPEServerHandler(CommandInvoker invoker,
                          Collection<IJNRPEEventListener> eventListeners)
Constructor.

Parameters:
invoker - the command invoker
eventListeners - The list of listeners
Method Detail

channelRead

public final void channelRead(io.netty.channel.ChannelHandlerContext ctx,
                              Object msg)
Specified by:
channelRead in interface io.netty.channel.ChannelInboundHandler
Overrides:
channelRead in class io.netty.channel.ChannelInboundHandlerAdapter

exceptionCaught

public final void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
                                  Throwable cause)
Specified by:
exceptionCaught in interface io.netty.channel.ChannelHandler
Specified by:
exceptionCaught in interface io.netty.channel.ChannelInboundHandler
Overrides:
exceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapter


Copyright © 2014. All Rights Reserved.