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 Constructor Description Apache5GracefulClosingStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose(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.
-
-
-
Method Detail
-
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:Apache5ConnectionClosingStrategyMethod to close the connection.- Specified by:
closein interfaceApache5ConnectionClosingStrategy- Parameters:
clientRequest- TheClientRequestto getconfiguration, andresolve properties.request- ApacheHttpUriRequestthat can beaborted.response- ApacheCloseableHttpResponsethat can beclosed.stream- The entity stream that can beclosed.- Throws:
IOException- In case of some of the closing methods throwsIOException
-
-