public static class Apache5ConnectionClosingStrategy.Apache5GracefulClosingStrategy extends Object implements Apache5ConnectionClosingStrategy
Apache5ConnectionClosingStrategy.Apache5GracefulClosingStrategy| Constructor and Description |
|---|
Apache5GracefulClosingStrategy() |
| Modifier and Type | Method and Description |
|---|---|
void |
close(ClientRequest clientRequest,
org.apache.hc.client5.http.classic.methods.HttpUriRequest request,
org.apache.hc.client5.http.impl.classic.CloseableHttpResponse response,
InputStream stream)
Method to close the connection.
|
public void close(ClientRequest clientRequest, org.apache.hc.client5.http.classic.methods.HttpUriRequest request, org.apache.hc.client5.http.impl.classic.CloseableHttpResponse response, InputStream stream) throws IOException
Apache5ConnectionClosingStrategyclose in interface Apache5ConnectionClosingStrategyclientRequest - The ClientRequest to get configuration,
and resolve properties.request - Apache HttpUriRequest that can be aborted.response - Apache CloseableHttpResponse that can be closed.stream - The entity stream that can be closed.IOException - In case of some of the closing methods throws IOExceptionCopyright © 2007-2024,Oracleand/or its affiliates.All Rights Reserved. Use is subject to license terms.