Class ProxyConfig

java.lang.Object
alpine.common.util.ProxyConfig

public final class ProxyConfig extends Object
HTTP proxy configuration.

Ported from Dependency-Track's ManagedHttpClientFactory.

Since:
2.3.0
See Also:
  • Constructor Details

    • ProxyConfig

      public ProxyConfig()
  • Method Details

    • shouldProxy

      public boolean shouldProxy(URL uri)
      Determines if proxy should be used or not for a given URI.

      Ported from Dependency-Track's ManagedHttpClientFactory.

      Parameters:
      uri - the URL that is being called by this application
      Returns:
      true if proxy is to be used, false if not
      See Also:
    • getProxy

      public Proxy getProxy()
    • getHost

      public String getHost()
    • setHost

      public void setHost(String host)
    • getPort

      public int getPort()
    • setPort

      public void setPort(int port)
    • getDomain

      public String getDomain()
    • setDomain

      public void setDomain(String domain)
    • getUsername

      public String getUsername()
    • setUsername

      public void setUsername(String username)
    • getPassword

      public String getPassword()
    • setPassword

      public void setPassword(String password)
    • getNoProxy

      public Set<String> getNoProxy()
    • setNoProxy

      public void setNoProxy(Set<String> noProxy)