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
Apache5ConnectionClosingStrategy
close
in interface Apache5ConnectionClosingStrategy
clientRequest
- The ClientRequest
to get configuration
,
and resolve properties
.request
- Apache HttpUriRequest
that can be abort
ed.response
- Apache CloseableHttpResponse
that can be close
d.stream
- The entity stream that can be closed
.IOException
- In case of some of the closing methods throws IOException
Copyright © 2007-2023, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.