Class DefaultClientBuilder

    • Constructor Detail

      • DefaultClientBuilder

        public DefaultClientBuilder()
    • Method Detail

      • configure

        public org.apache.hc.client5.http.impl.classic.HttpClientBuilder configure​(org.apache.hc.client5.http.impl.classic.HttpClientBuilder builder)
                                                                            throws java.lang.Exception
        Description copied from interface: HttpClientBuilderConfigurator
        Do any additional configuration.
        Specified by:
        configure in interface HttpClientBuilderConfigurator
        Parameters:
        builder - the existing builder
        Returns:
        a reconfigured builder.
        Throws:
        java.lang.Exception
      • customiseTimeouts

        protected org.apache.hc.client5.http.impl.classic.HttpClientBuilder customiseTimeouts​(org.apache.hc.client5.http.impl.classic.HttpClientBuilder builder,
                                                                                              long timeout)
        Customise any timeouts as required.
        Parameters:
        builder - the builder
        timeout - the timeout specified by RequestReplyProducerImp.doRequest(AdaptrisMessage, String, long)
        Returns:
        the builder.
      • setAllowRedirect

        public void setAllowRedirect​(java.lang.Boolean b)
        Specify whether to automatically handle redirection.
        Parameters:
        b - true or false.
      • handleRedirection

        protected boolean handleRedirection()
      • getAllowRedirect

        public java.lang.Boolean getAllowRedirect()
        Get the handle redirection flag.
        Returns:
        true or false.
      • withAllowRedirect

        public <T extends DefaultClientBuilder> T withAllowRedirect​(java.lang.Boolean b)
      • getHttpProxy

        public java.lang.String getHttpProxy()
        Returns:
        the httpProxy
      • setHttpProxy

        public void setHttpProxy​(java.lang.String proxy)
        Explicitly configure a proxy server.
        Parameters:
        proxy - the httpProxy to generally scheme://host:port or more simply host:port
      • getConnectTimeout

        public TimeInterval getConnectTimeout()
      • setConnectTimeout

        public void setConnectTimeout​(TimeInterval t)
        Set the connect timeout.
        Parameters:
        t - the timeout.