Class NettyTcpRequest
java.lang.Object
org.serviceconnector.net.req.RequestAdapter
org.serviceconnector.net.res.netty.NettyTcpRequest
- All Implemented Interfaces:
IRequest
The Class NettyTcpRequest is responsible for reading a request from a ChannelBuffer. Decodes SCMP from a TCP frame. Based on JBoss Netty.
-
Constructor Summary
ConstructorsConstructorDescriptionNettyTcpRequest(byte[] buffer, InetSocketAddress localAddress, InetSocketAddress remoteAddress) Instantiates a new netty tcp request. -
Method Summary
Methods inherited from class org.serviceconnector.net.req.RequestAdapter
getKey, getLocalSocketAddress, getMessage, getRemoteSocketAddress, setMessage
-
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 frameworklocalAddress- the local addressremoteAddress- the remote address
-
-
Method Details
-
load
Load content on socket to the request. Decodes network frame into an scmp.- Throws:
Exception- the exception
-