Top Description Constructors Methods
org.apache.hc.client5.http.io

public abstract Class ConnectionEndpoint

extends Object
implements ModalCloseable
Class Inheritance
All Implemented Interfaces
org.apache.hc.core5.io.ModalCloseable, java.io.Closeable, java.lang.AutoCloseable
Known Direct Subclasses
org.apache.hc.client5.http.impl.io.BasicHttpClientConnectionManager.InternalConnectionEndpoint, org.apache.hc.client5.http.impl.io.PoolingHttpClientConnectionManager.InternalConnectionEndpoint
Annotations
@Contract
threading:SAFE
Imports
java.io.IOException, org.apache.hc.core5.annotation.Contract, .ThreadingBehavior, org.apache.hc.core5.http.ClassicHttpRequest, .ClassicHttpResponse, .HttpException, org.apache.hc.core5.http.impl.io.HttpRequestExecutor, org.apache.hc.core5.http.protocol.HttpContext, org.apache.hc.core5.io.ModalCloseable, org.apache.hc.core5.util.Timeout

Client endpoint leased from a connection manager. Client points can be used to execute HTTP requests.

Once the endpoint is no longer needed it MUST be released with close(org.apache.hc.core5.io.CloseMode) )}.

Since
5.0

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract ClassicHttpResponse
execute(String
unique operation ID or null.
id
,
ClassicHttpRequest
the request message.
request
,
HttpRequestExecutor
the request executor.
executor
,
HttpContext
the execution context.
context
)

Executes HTTP request using the provided request executor.

public abstract boolean
isConnected()

Determines if the connection to the remote endpoint is still open and valid.

public abstract void
setSocketTimeout(Timeout
timeout value
timeout
)

Sets the socket timeout value.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ConnectionEndpointback to summary
public ConnectionEndpoint()

Method Detail

executeback to summary
public abstract ClassicHttpResponse execute(String id, ClassicHttpRequest request, HttpRequestExecutor executor, HttpContext context) throws IOException, HttpException

Executes HTTP request using the provided request executor.

Once the endpoint is no longer needed it MUST be released with close(org.apache.hc.core5.io.CloseMode).

Parameters
id:String

unique operation ID or null.

request:ClassicHttpRequest

the request message.

executor:HttpRequestExecutor

the request executor.

context:HttpContext

the execution context.

isConnectedback to summary
public abstract boolean isConnected()

Determines if the connection to the remote endpoint is still open and valid.

setSocketTimeoutback to summary
public abstract void setSocketTimeout(Timeout timeout)

Sets the socket timeout value.

Parameters
timeout:Timeout

timeout value