public static class ApacheConnectionClosingStrategy.GracefulClosingStrategy extends Object implements ApacheConnectionClosingStrategy
ApacheConnectionClosingStrategy.GracefulClosingStrategy, ApacheConnectionClosingStrategy.ImmediateClosingStrategy
Constructor and Description |
---|
GracefulClosingStrategy() |
Modifier and Type | Method and Description |
---|---|
void |
close(ClientRequest clientRequest,
org.apache.http.client.methods.HttpUriRequest request,
org.apache.http.client.methods.CloseableHttpResponse response,
InputStream stream)
Method to close the connection.
|
public void close(ClientRequest clientRequest, org.apache.http.client.methods.HttpUriRequest request, org.apache.http.client.methods.CloseableHttpResponse response, InputStream stream) throws IOException
ApacheConnectionClosingStrategy
close
in interface ApacheConnectionClosingStrategy
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-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.