public interface NHttpServerConnection extends NHttpConnection
NHttpConnection
ACTIVE, CLOSED, CLOSING
Modifier and Type | Method and 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(HttpResponse response)
Submits {link @HttpResponse} to be sent to the client.
|
getContext, getHttpRequest, getHttpResponse, getStatus
close, getMetrics, getSocketTimeout, isOpen, isStale, setSocketTimeout, shutdown
requestInput, requestOutput, shutdown, suspendInput, suspendOutput
void submitResponse(HttpResponse response) throws IOException, HttpException
response
- HTTP responseIOException
- 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()
Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.