Package org.apache.hc.client5.http.impl
Class DefaultClientConnectionReuseStrategy
- java.lang.Object
-
- org.apache.hc.core5.http.impl.DefaultConnectionReuseStrategy
-
- org.apache.hc.client5.http.impl.DefaultClientConnectionReuseStrategy
-
- All Implemented Interfaces:
org.apache.hc.core5.http.ConnectionReuseStrategy
@Contract(threading=STATELESS) public class DefaultClientConnectionReuseStrategy extends org.apache.hc.core5.http.impl.DefaultConnectionReuseStrategyExtension of coreDefaultConnectionReuseStrategythat treats CONNECT method exchanges involved in proxy tunnelling as a special case.- Since:
- 5.2
-
-
Field Summary
Fields Modifier and Type Field Description static DefaultClientConnectionReuseStrategyINSTANCE
-
Constructor Summary
Constructors Constructor Description DefaultClientConnectionReuseStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleankeepAlive(org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.HttpResponse response, org.apache.hc.core5.http.protocol.HttpContext context)
-
-
-
Field Detail
-
INSTANCE
public static final DefaultClientConnectionReuseStrategy INSTANCE
-
-
Method Detail
-
keepAlive
public boolean keepAlive(org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.HttpResponse response, org.apache.hc.core5.http.protocol.HttpContext context)- Specified by:
keepAlivein interfaceorg.apache.hc.core5.http.ConnectionReuseStrategy- Overrides:
keepAlivein classorg.apache.hc.core5.http.impl.DefaultConnectionReuseStrategy
-
-