public class NetworkHandler extends io.netty.channel.SimpleChannelInboundHandler<String>
Constructor and Description |
---|
NetworkHandler(FtpSession session)
Constructor from session
|
Modifier and Type | Method and Description |
---|---|
protected void |
callForSnmp(String error1,
String error2)
To be extended to inform of an error to SNMP support
|
void |
channelActive(io.netty.channel.ChannelHandlerContext ctx)
Initialize the Handler.
|
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx)
Run firstly executeChannelClosed.
|
void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
String e)
Simply call messageRun with the received message
|
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause)
Default exception task: close the current connection after calling exceptionLocalCaught and
writing if possible the current replyCode.
|
BusinessHandler |
getBusinessHandler() |
io.netty.channel.Channel |
getControlChannel() |
FtpSession |
getFtpSession() |
io.netty.channel.ChannelFuture |
writeIntermediateAnswer()
Write an intermediate Answer from Business before last answer also set by the Business
|
io.netty.channel.ChannelFuture |
writeIntermediateAnswer(io.netty.channel.ChannelHandlerContext ctx)
Write an intermediate Answer from Business before last answer also set by the Business
|
acceptInboundMessage, channelRead
channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
public NetworkHandler(FtpSession session)
session
- public BusinessHandler getBusinessHandler()
public FtpSession getFtpSession()
public io.netty.channel.Channel getControlChannel()
public void channelInactive(io.netty.channel.ChannelHandlerContext ctx) throws Exception
channelInactive
in interface io.netty.channel.ChannelInboundHandler
channelInactive
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
public void channelActive(io.netty.channel.ChannelHandlerContext ctx) throws Exception
channelActive
in interface io.netty.channel.ChannelInboundHandler
channelActive
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause) throws Exception
exceptionCaught
in interface io.netty.channel.ChannelHandler
exceptionCaught
in interface io.netty.channel.ChannelInboundHandler
exceptionCaught
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
public void channelRead0(io.netty.channel.ChannelHandlerContext ctx, String e)
channelRead0
in class io.netty.channel.SimpleChannelInboundHandler<String>
public io.netty.channel.ChannelFuture writeIntermediateAnswer(io.netty.channel.ChannelHandlerContext ctx)
public io.netty.channel.ChannelFuture writeIntermediateAnswer()
Copyright © 2009–2019 Waarp. All rights reserved.