|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NHttpServerConnection
Abstract non-blocking server-side HTTP connection interface. It can be used to receive HTTP requests and asynchronously submit HTTP responses.
NHttpConnection
Field Summary |
---|
Fields inherited from interface org.apache.http.nio.NHttpConnection |
---|
ACTIVE, CLOSED, CLOSING |
Method Summary | |
---|---|
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. |
Methods inherited from interface org.apache.http.nio.NHttpConnection |
---|
getContext, getHttpRequest, getHttpResponse, getStatus |
Methods inherited from interface org.apache.http.HttpConnection |
---|
close, getMetrics, getSocketTimeout, isOpen, isStale, setSocketTimeout, shutdown |
Methods inherited from interface org.apache.http.nio.IOControl |
---|
requestInput, requestOutput, shutdown, suspendInput, suspendOutput |
Method Detail |
---|
void submitResponse(HttpResponse response) throws IOException, HttpException
response
- HTTP response
IOException
- if I/O error occurs while submitting the response
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |