Class NettyTcpRequest

java.lang.Object
org.serviceconnector.net.req.RequestAdapter
org.serviceconnector.net.res.netty.NettyTcpRequest
All Implemented Interfaces:
IRequest

public class NettyTcpRequest extends RequestAdapter
The Class NettyTcpRequest is responsible for reading a request from a ChannelBuffer. Decodes SCMP from a TCP frame. Based on JBoss Netty.
  • Constructor Details

    • NettyTcpRequest

      public NettyTcpRequest(byte[] buffer, InetSocketAddress localAddress, InetSocketAddress remoteAddress)
      Instantiates a new netty tcp request.
      Parameters:
      buffer - the message buffer received from the Netty framework
      localAddress - the local address
      remoteAddress - the remote address
  • Method Details

    • load

      public void load() throws Exception
      Load content on socket to the request. Decodes network frame into an scmp.
      Throws:
      Exception - the exception