Class Apache5ConnectionClosingStrategy.Apache5GracefulClosingStrategy
java.lang.Object
org.glassfish.jersey.apache5.connector.Apache5ConnectionClosingStrategy.Apache5GracefulClosingStrategy
- All Implemented Interfaces:
Apache5ConnectionClosingStrategy
- Enclosing interface:
- Apache5ConnectionClosingStrategy
public static class Apache5ConnectionClosingStrategy.Apache5GracefulClosingStrategy
extends Object
implements Apache5ConnectionClosingStrategy
Strategy that aborts Apache HttpRequests for the case of Chunked Stream, closes the stream, and response next.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.glassfish.jersey.apache5.connector.Apache5ConnectionClosingStrategy
Apache5ConnectionClosingStrategy.Apache5GracefulClosingStrategy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.
-
Constructor Details
-
Apache5GracefulClosingStrategy
public Apache5GracefulClosingStrategy()
-
-
Method Details
-
close
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 Description copied from interface:Apache5ConnectionClosingStrategy
Method to close the connection.- Specified by:
close
in interfaceApache5ConnectionClosingStrategy
- Parameters:
clientRequest
- TheClientRequest
to getconfiguration
, andresolve properties
.request
- ApacheHttpUriRequest
that can beabort
ed.response
- ApacheCloseableHttpResponse
that can beclose
d.stream
- The entity stream that can beclosed
.- Throws:
IOException
- In case of some of the closing methods throwsIOException
-