Class LineOrientedRequestEncoder

  • All Implemented Interfaces:
    org.jboss.netty.channel.ChannelDownstreamHandler, org.jboss.netty.channel.ChannelHandler

    public class LineOrientedRequestEncoder
    extends org.jboss.netty.handler.codec.oneone.OneToOneEncoder

    LineOrientedRequestEncoder class.

    Author:
    Seth
    • Constructor Detail

      • LineOrientedRequestEncoder

        public LineOrientedRequestEncoder()
    • Method Detail

      • encode

        public Object encode​(org.jboss.netty.channel.ChannelHandlerContext ctx,
                             org.jboss.netty.channel.Channel channel,
                             Object msg)
                      throws Exception
        This method encodes LineOrientedRequest objects into String instances that contain the byte representation of the request.
        Specified by:
        encode in class org.jboss.netty.handler.codec.oneone.OneToOneEncoder
        Throws:
        Exception