java.lang.AutoCloseable, java.io.Closeable, org.apache.http.HttpConnection, IOControl, NHttpConnectionNHttpServerIOTargetDefaultNHttpServerConnectionpublic interface NHttpServerConnection extends NHttpConnection
NHttpConnectionACTIVE, CLOSED, CLOSING| Modifier and Type | Method | Description |
|---|---|---|
boolean |
isResponseSubmitted() |
Returns
true if an HTTP response has been submitted to the
client. |
void |
resetInput() |
Resets output state.
|
void |
resetOutput() |
Resets input state.
|
void |
submitResponse(org.apache.http.HttpResponse response) |
Submits {link @HttpResponse} to be sent to the client.
|
close, getMetrics, getSocketTimeout, isOpen, isStale, setSocketTimeout, shutdownrequestInput, requestOutput, shutdown, suspendInput, suspendOutputgetContext, getHttpRequest, getHttpResponse, getStatusvoid submitResponse(org.apache.http.HttpResponse response)
throws java.io.IOException,
org.apache.http.HttpException
response - HTTP responsejava.io.IOException - if I/O error occurs while submitting the responseorg.apache.http.HttpException - if the HTTP response violates the HTTP protocol.boolean isResponseSubmitted()
true if an HTTP response has been submitted to the
client.true if an HTTP response has been submitted,
false otherwise.void resetInput()
void resetOutput()