Package org.drasyl.cli.wormhole.handler
Class WormholeTextSender
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.channel.SimpleChannelInboundHandler<WormholeMessage>
-
- org.drasyl.cli.wormhole.handler.WormholeTextSender
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelInboundHandler
public class WormholeTextSender extends io.netty.channel.SimpleChannelInboundHandler<WormholeMessage>
-
-
Field Summary
Fields Modifier and Type Field Description protected PrintStream
out
protected String
password
-
Constructor Summary
Constructors Constructor Description WormholeTextSender(PrintStream out, String password, String text)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
channelRead0(io.netty.channel.ChannelHandlerContext ctx, WormholeMessage msg)
protected org.drasyl.util.logging.Logger
log()
protected void
transferPayload(io.netty.channel.ChannelHandlerContext ctx)
-
Methods inherited from class io.netty.channel.SimpleChannelInboundHandler
acceptInboundMessage, channelRead
-
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
-
-
-
-
Field Detail
-
out
protected final PrintStream out
-
password
protected final String password
-
-
Constructor Detail
-
WormholeTextSender
public WormholeTextSender(PrintStream out, String password, String text)
-
-
Method Detail
-
transferPayload
protected void transferPayload(io.netty.channel.ChannelHandlerContext ctx)
-
log
protected org.drasyl.util.logging.Logger log()
-
channelRead0
protected void channelRead0(io.netty.channel.ChannelHandlerContext ctx, WormholeMessage msg)
- Specified by:
channelRead0
in classio.netty.channel.SimpleChannelInboundHandler<WormholeMessage>
-
-