
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, channelReadchannelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic 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.ChannelInboundHandlerchannelInactive in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void channelActive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelActive in interface io.netty.channel.ChannelInboundHandlerchannelActive in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause)
throws Exception
exceptionCaught in interface io.netty.channel.ChannelHandlerexceptionCaught in interface io.netty.channel.ChannelInboundHandlerexceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic 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.