Class NettyResponderRequestHandlerTask
java.lang.Object
org.serviceconnector.net.res.netty.NettyResponderRequestHandlerTask
- All Implemented Interfaces:
IResponderCallback
The Class NettyResponderRequestHandlerTask. Is responsible for processing a request. It has to be a new thread because of NETTY threading concept. A worker thread owns a channel
pipeline. If block the thread nothing will be sent on that channel. More information about this issue: http://www.jboss.org/netty/community.html#nabble-td5441049
-
Constructor Summary
ConstructorsConstructorDescriptionNettyResponderRequestHandlerTask(IRequest request, IResponse response) Instantiates a new netty responder request handler task. -
Method Summary
Modifier and TypeMethodDescriptionvoidprocess()Process the request.voidresponseCallback(IRequest request, IResponse response) Response callback.protected voidsendBadRequestError(IResponse response, SCMPMessage scmpReq) Send bad request error.
-
Constructor Details
-
NettyResponderRequestHandlerTask
Instantiates a new netty responder request handler task.- Parameters:
request- the requestresponse- the response
-
-
Method Details
-
process
public void process()Process the request. -
responseCallback
Response callback.- Specified by:
responseCallbackin interfaceIResponderCallback- Parameters:
request- the requestresponse- the response
-
sendBadRequestError
Send bad request error.- Parameters:
response- the responsescmpReq- the SCMP request- Throws:
Exception- the exception
-