Class ApacheConnectionClosingStrategy.ImmediateClosingStrategy
java.lang.Object
org.glassfish.jersey.apache.connector.ApacheConnectionClosingStrategy.ImmediateClosingStrategy
- All Implemented Interfaces:
ApacheConnectionClosingStrategy
- Enclosing interface:
- ApacheConnectionClosingStrategy
public static class ApacheConnectionClosingStrategy.ImmediateClosingStrategy
extends Object
implements ApacheConnectionClosingStrategy
Strategy that closes the response and content stream next. This is a behaviour of Jersey 2.28.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.glassfish.jersey.apache.connector.ApacheConnectionClosingStrategy
ApacheConnectionClosingStrategy.GracefulClosingStrategy, ApacheConnectionClosingStrategy.ImmediateClosingStrategy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose(ClientRequest clientRequest, org.apache.http.client.methods.HttpUriRequest request, org.apache.http.client.methods.CloseableHttpResponse response, InputStream stream) Method to close the connection.
-
Constructor Details
-
ImmediateClosingStrategy
public ImmediateClosingStrategy()
-
-
Method Details
-
close
public void close(ClientRequest clientRequest, org.apache.http.client.methods.HttpUriRequest request, org.apache.http.client.methods.CloseableHttpResponse response, InputStream stream) throws IOException Description copied from interface:ApacheConnectionClosingStrategyMethod to close the connection.- Specified by:
closein interfaceApacheConnectionClosingStrategy- 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
-