java.lang.Object
edu.internet2.middleware.grouperClientExt.org.apache.commons.httpclient.contrib.ssl.HttpHostFactory

public class HttpHostFactory extends Object
A source of HttpHosts.
  • Field Details

    • DEFAULT

      public static final HttpHostFactory DEFAULT
      The default factory.
    • httpProtocol

      protected final Protocol httpProtocol
    • httpsProtocol

      protected final Protocol httpsProtocol
  • Constructor Details

    • HttpHostFactory

      public HttpHostFactory(Protocol httpProtocol, Protocol httpsProtocol)
  • Method Details

    • getHost

      public HttpHost getHost(HostConfiguration old, String scheme, String host, int port)
      Get a host for the given parameters. This method need not be thread-safe.
    • getProtocol

      protected Protocol getProtocol(HostConfiguration old, String scheme, String host, int port)
      Get a Protocol for the given parameters. The default implementation selects a protocol based only on the scheme. Subclasses can do fancier things, such as select SSL parameters based on the host or port. This method must not return null.