|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Abstract non-blocking server-side HTTP connection. It can be used to receive HTTP requests and asynchronously submit HTTP responses.
Method Summary | |
void |
cancelRequest()
Cancels pending HTTP request if it failed the target server expections (the target server responded with non 1xx status code during the 'expect: continue' handshake). |
boolean |
isResponseSubmitted()
Returns true if an HTTP response has been submitted to the client. |
void |
submitResponse(org.apache.http.HttpResponse response)
Submits the HTTP response to the client. |
Methods inherited from interface org.apache.http.nio.NHttpConnection |
getContext, getHttpRequest, getHttpResponse |
Methods inherited from interface org.apache.http.HttpConnection |
close, getSocketTimeout, isOpen, isStale, setSocketTimeout, shutdown |
Methods inherited from interface org.apache.http.nio.IOControl |
requestInput, requestOutput, suspendInput, suspendOutput |
Method Detail |
public void submitResponse(org.apache.http.HttpResponse response) throws org.apache.http.HttpException
response
- HTTP response
org.apache.http.HttpException
- if the HTTP response violates the HTTP protocol.public boolean isResponseSubmitted()
public void cancelRequest()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |