public abstract class ConnectionEndpoint
extends java.lang.Object
Once the endpoint is no longer needed it MUST be released with #close(org.apache.hc.core5.io.CloseMode) )}.
| Constructor and Description |
|---|
ConnectionEndpoint() |
| Modifier and Type | Method and Description |
|---|---|
abstract ClassicHttpResponse |
execute(java.lang.String id,
ClassicHttpRequest request,
HttpRequestExecutor executor,
HttpContext context)
Executes HTTP request using the provided request executor.
|
abstract boolean |
isConnected()
Determines if the connection to the remote endpoint is still open and valid.
|
abstract void |
setSocketTimeout(Timeout timeout)
Sets the socket timeout value.
|
public abstract ClassicHttpResponse execute(java.lang.String id,
ClassicHttpRequest request,
HttpRequestExecutor executor,
HttpContext context)
throws java.io.IOException,
HttpException
Once the endpoint is no longer needed it MUST be released with #close(org.apache.hc.core5.io.CloseMode).
id - unique operation ID or null.request - the request message.executor - the request executor.context - the execution context.java.io.IOExceptionHttpExceptionpublic abstract boolean isConnected()
public abstract void setSocketTimeout(Timeout timeout)
timeout - timeout value