Class BasicHttpClientConnectionManager.InternalConnectionEndpoint
java.lang.Object
org.apache.hc.client5.http.io.ConnectionEndpoint
org.apache.hc.client5.http.impl.io.BasicHttpClientConnectionManager.InternalConnectionEndpoint
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.hc.core5.io.ModalCloseable
- Enclosing class:
BasicHttpClientConnectionManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AtomicReference<ManagedHttpClientConnection> private final HttpRoute -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidclose(org.apache.hc.core5.io.CloseMode closeMode) (package private) ManagedHttpClientConnectiondetach()org.apache.hc.core5.http.ClassicHttpResponseexecute(String exchangeId, org.apache.hc.core5.http.ClassicHttpRequest request, org.apache.hc.core5.http.impl.io.HttpRequestExecutor requestExecutor, org.apache.hc.core5.http.protocol.HttpContext context) Executes HTTP request using the provided request executor.(package private) ManagedHttpClientConnection(package private) HttpRoutegetRoute()(package private) ManagedHttpClientConnectionbooleanDetermines if the connection to the remote endpoint is still open and valid.voidsetSocketTimeout(org.apache.hc.core5.util.Timeout timeout) Sets the socket timeout value.
-
Field Details
-
route
-
connRef
-
-
Constructor Details
-
InternalConnectionEndpoint
-
-
Method Details
-
getRoute
HttpRoute getRoute() -
getConnection
ManagedHttpClientConnection getConnection() -
getValidatedConnection
ManagedHttpClientConnection getValidatedConnection() -
detach
ManagedHttpClientConnection detach() -
isConnected
public boolean isConnected()Description copied from class:ConnectionEndpointDetermines if the connection to the remote endpoint is still open and valid.- Specified by:
isConnectedin classConnectionEndpoint
-
close
public void close(org.apache.hc.core5.io.CloseMode closeMode) -
close
- Throws:
IOException
-
setSocketTimeout
public void setSocketTimeout(org.apache.hc.core5.util.Timeout timeout) Description copied from class:ConnectionEndpointSets the socket timeout value.- Specified by:
setSocketTimeoutin classConnectionEndpoint- Parameters:
timeout- timeout value
-
execute
public org.apache.hc.core5.http.ClassicHttpResponse execute(String exchangeId, org.apache.hc.core5.http.ClassicHttpRequest request, org.apache.hc.core5.http.impl.io.HttpRequestExecutor requestExecutor, org.apache.hc.core5.http.protocol.HttpContext context) throws IOException, org.apache.hc.core5.http.HttpException Description copied from class:ConnectionEndpointExecutes HTTP request using the provided request executor.Once the endpoint is no longer needed it MUST be released with
ModalCloseable.close(org.apache.hc.core5.io.CloseMode).- Specified by:
executein classConnectionEndpoint- Parameters:
exchangeId- unique operation ID ornull.request- the request message.requestExecutor- the request executor.context- the execution context.- Throws:
IOExceptionorg.apache.hc.core5.http.HttpException
-