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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close
(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:ApacheConnectionClosingStrategy
Method to close the connection.- Specified by:
close
in interfaceApacheConnectionClosingStrategy
- 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
-