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.ServerConnState
connState
private IOControl
iocontrol
private boolean
triggered
-
Constructor Summary
Constructors Constructor Description ResponseTriggerImpl(AsyncNHttpServiceHandler.ServerConnState connState, IOControl iocontrol)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleException(java.io.IOException ex)
Report an IOException thrown while processing the request.void
handleException(HttpException ex)
Reports a protocol exception thrown while processing the request.void
submitResponse(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:NHttpResponseTrigger
Submits a response to be sent back to the client as a result of processing of the request.- Specified by:
submitResponse
in interfaceNHttpResponseTrigger
-
handleException
public void handleException(HttpException ex)
Description copied from interface:NHttpResponseTrigger
Reports a protocol exception thrown while processing the request.- Specified by:
handleException
in interfaceNHttpResponseTrigger
-
handleException
public void handleException(java.io.IOException ex)
Description copied from interface:NHttpResponseTrigger
Report an IOException thrown while processing the request.- Specified by:
handleException
in interfaceNHttpResponseTrigger
-
-