|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Abstract non-blocking client-side HTTP connection. It can be used to submit HTTP requests and asynchronously receive 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 |
isRequestSubmitted()
Returns true if an HTTP request has been submitted to the target server. |
void |
submitRequest(org.apache.http.HttpRequest request)
Submits the HTTP request to the target server. |
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 submitRequest(org.apache.http.HttpRequest request) throws org.apache.http.HttpException
request
- HTTP request
org.apache.http.HttpException
- if the HTTP request violates the HTTP protocol.public boolean isRequestSubmitted()
public void cancelRequest()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |