|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

public interface IHttpClientEndpoint
Represents the client side endpoint of a http connection
| Field Summary | |
|---|---|
static boolean |
DEFAULT_AUTOHANDLE_100CONTINUE_RESPONSE
|
| Method Summary | |
|---|---|
IHttpResponse |
call(IHttpRequest request)
performs a request. |
String |
getId()
returns the id |
long |
getResponseTimeoutMillis()
returns the response timeout |
IFutureResponse |
send(IHttpRequest request)
send the request. |
BodyDataSink |
send(IHttpRequestHeader requestHeader,
IHttpResponseHandler responseHandler)
send the request. |
BodyDataSink |
send(IHttpRequestHeader requestHeader,
int contentLength,
IHttpResponseHandler responseHandler)
send the request in a plain body mode Connection-LifeCycle support: If the request header contains a 'Connection: close' entry, the connection will be closed after the HTTP transaction |
void |
send(IHttpRequest request,
IHttpResponseHandler responseHandler)
send the request. |
void |
setResponseTimeoutMillis(long responseTimeout)
set the response time out by performing the call or send method. |
| Methods inherited from interface java.io.Closeable |
|---|
close |
| Field Detail |
|---|
static final boolean DEFAULT_AUTOHANDLE_100CONTINUE_RESPONSE
| Method Detail |
|---|
void setResponseTimeoutMillis(long responseTimeout)
responseTimeout - the response timeoutlong getResponseTimeoutMillis()
IHttpResponse call(IHttpRequest request)
throws IOException,
ConnectException,
SocketTimeoutException
request - the request
IOException - if an exception occurs
ConnectException - if an error occurred while attempting to connect to a remote address and port.
SocketTimeoutException - if the received timeout is exceed
BodyDataSink send(IHttpRequestHeader requestHeader,
IHttpResponseHandler responseHandler)
throws IOException,
ConnectException
requestHeader - the request headerresponseHandler - the response handler or null (supported: IHttpRequestHandler, IHttpSocketTimeoutHandler)
ConnectException - if an error occurred while attempting to connect to a remote address and port.
IOException - if an exception occurs
BodyDataSink send(IHttpRequestHeader requestHeader,
int contentLength,
IHttpResponseHandler responseHandler)
throws IOException,
ConnectException
requestHeader - the request headercontentLength - the content lengthresponseHandler - the response handler or null (supported: IHttpRequestHandler, IHttpSocketTimeoutHandler)
ConnectException - if an error occurred while attempting to connect to a remote address and port.
IOException - if an exception occurs
void send(IHttpRequest request,
IHttpResponseHandler responseHandler)
throws IOException,
ConnectException
request - the requestresponseHandler - the response handler or null (supported: IHttpRequestHandler, IHttpSocketTimeoutHandler)
ConnectException - if an error occurred while attempting to connect to a remote address and port.
IOException - if an exception occurs
IFutureResponse send(IHttpRequest request)
throws IOException,
ConnectException
request - the requestresponse - the response
ConnectException - if an error occurred while attempting to connect to a remote address and port.
IOException - if an exception occursString getId()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||