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