Package org.apache.http.nio.protocol
Class AsyncNHttpServiceHandler.ResponseTriggerImpl
- java.lang.Object
-
- org.apache.http.nio.protocol.AsyncNHttpServiceHandler.ResponseTriggerImpl
-
- All Implemented Interfaces:
NHttpResponseTrigger
- Enclosing class:
- AsyncNHttpServiceHandler
private static class AsyncNHttpServiceHandler.ResponseTriggerImpl extends java.lang.Object implements NHttpResponseTrigger
-
-
Field Summary
Fields Modifier and Type Field Description private AsyncNHttpServiceHandler.ServerConnStateconnStateprivate IOControliocontrolprivate booleantriggered
-
Constructor Summary
Constructors Constructor Description ResponseTriggerImpl(AsyncNHttpServiceHandler.ServerConnState connState, IOControl iocontrol)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleException(java.io.IOException ex)Report an IOException thrown while processing the request.voidhandleException(HttpException ex)Reports a protocol exception thrown while processing the request.voidsubmitResponse(HttpResponse response)Submits a response to be sent back to the client as a result of processing of the request.
-
-
-
Field Detail
-
connState
private final AsyncNHttpServiceHandler.ServerConnState connState
-
iocontrol
private final IOControl iocontrol
-
triggered
private volatile boolean triggered
-
-
Constructor Detail
-
ResponseTriggerImpl
public ResponseTriggerImpl(AsyncNHttpServiceHandler.ServerConnState connState, IOControl iocontrol)
-
-
Method Detail
-
submitResponse
public void submitResponse(HttpResponse response)
Description copied from interface:NHttpResponseTriggerSubmits a response to be sent back to the client as a result of processing of the request.- Specified by:
submitResponsein interfaceNHttpResponseTrigger
-
handleException
public void handleException(HttpException ex)
Description copied from interface:NHttpResponseTriggerReports a protocol exception thrown while processing the request.- Specified by:
handleExceptionin interfaceNHttpResponseTrigger
-
handleException
public void handleException(java.io.IOException ex)
Description copied from interface:NHttpResponseTriggerReport an IOException thrown while processing the request.- Specified by:
handleExceptionin interfaceNHttpResponseTrigger
-
-