Class NettyTcpResponse
java.lang.Object
org.serviceconnector.net.res.ResponseAdapter
org.serviceconnector.net.res.netty.NettyTcpResponse
- All Implemented Interfaces:
IResponse
The Class NettyTcpResponse is responsible for writing a response to a ChannelBuffer. Encodes SCMP to a TCP frame. Based on JBoss Netty.
-
Field Summary
Fields inherited from class org.serviceconnector.net.res.ResponseAdapter
channel, encoderDecoder, scmp -
Constructor Summary
ConstructorsConstructorDescriptionNettyTcpResponse(io.netty.channel.Channel channel) Instantiates a new netty tcp response. -
Method Summary
Methods inherited from class org.serviceconnector.net.res.ResponseAdapter
getBuffer, getSCMP, isLarge, setSCMP
-
Constructor Details
-
NettyTcpResponse
public NettyTcpResponse(io.netty.channel.Channel channel) Instantiates a new netty tcp response.- Parameters:
channel- the channel
-
-
Method Details
-
write
Write the response.- Specified by:
writein interfaceIResponse- Specified by:
writein classResponseAdapter- Throws:
Exception- the exception
-