Class DefaultClientConnectionReuseStrategy

  • All Implemented Interfaces:
    org.apache.hc.core5.http.ConnectionReuseStrategy

    @Contract(threading=STATELESS)
    public class DefaultClientConnectionReuseStrategy
    extends org.apache.hc.core5.http.impl.DefaultConnectionReuseStrategy
    Extension of core DefaultConnectionReuseStrategy that treats CONNECT method exchanges involved in proxy tunnelling as a special case.
    Since:
    5.2
    • Constructor Detail

      • DefaultClientConnectionReuseStrategy

        public DefaultClientConnectionReuseStrategy()
    • 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:
        keepAlive in interface org.apache.hc.core5.http.ConnectionReuseStrategy
        Overrides:
        keepAlive in class org.apache.hc.core5.http.impl.DefaultConnectionReuseStrategy