|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NHttpClientConnection
Abstract non-blocking client-side HTTP connection. It can be used to submit HTTP requests and asynchronously receive HTTP responses.
Field Summary |
---|
Fields inherited from interface org.apache.http.nio.NHttpConnection |
---|
ACTIVE, CLOSED, CLOSING |
Method Summary | |
---|---|
boolean |
isRequestSubmitted()
Returns true if an HTTP request has been submitted to the target server. |
void |
resetInput()
Resets output state. |
void |
resetOutput()
Resets input state. |
void |
submitRequest(HttpRequest request)
Submits the HTTP request to the target server. |
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 submitRequest(HttpRequest request) throws java.io.IOException, HttpException
request
- HTTP request
java.io.IOException
- if I/O error occurs while submitting the request
HttpException
- if the HTTP request violates the HTTP protocol.boolean isRequestSubmitted()
void resetOutput()
void resetInput()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |