public interface NHttpServerConnection extends NHttpConnection
NHttpConnectionACTIVE, CLOSED, CLOSING| 限定符和类型 | 方法和说明 |
|---|---|
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(HttpResponse response)
Submits {link @HttpResponse} to be sent to the client.
|
getContext, getHttpRequest, getHttpResponse, getStatusclose, getMetrics, getSocketTimeout, isOpen, isStale, setSocketTimeout, shutdownrequestInput, requestOutput, shutdown, suspendInput, suspendOutputvoid submitResponse(HttpResponse response) throws java.io.IOException, HttpException
response - HTTP responsejava.io.IOException - if I/O error occurs while submitting the responseHttpException - 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()