Class ProxyProperties

java.lang.Object
eu.europa.esig.dss.service.http.proxy.ProxyProperties
All Implemented Interfaces:
Serializable

public class ProxyProperties extends Object implements Serializable
This class is a DTO which contains proxy properties for HTTP or HTTPS
See Also:
  • Constructor Details

    • ProxyProperties

      public ProxyProperties()
      Default constructor with null values
  • Method Details

    • getHost

      public String getHost()
      Returns the proxy host to use
      Returns:
      the proxy host
    • setHost

      public void setHost(String host)
      Set the proxy host
      Parameters:
      host - the host to use
    • getPort

      public int getPort()
      Returns the port to use
      Returns:
      the proxy port
    • setPort

      public void setPort(int port)
      Set the proxy port
      Parameters:
      port - the port to use
    • getUser

      public String getUser()
      Returns the user to use
      Returns:
      the proxy user
    • setUser

      public void setUser(String user)
      Set the proxy user
      Parameters:
      user - the user to use
    • getPassword

      public char[] getPassword()
      Returns the password to use
      Returns:
      the proxy password
    • setPassword

      public void setPassword(char[] password)
      Set the proxy password
      Parameters:
      password - the password to use
    • getScheme

      public String getScheme()
      Gets the host connection scheme
      Returns:
      String
    • setScheme

      public void setScheme(String scheme)
      Sets the host connection scheme (e.g. "http", "https", etc.)
      Parameters:
      scheme - String
    • getExcludedHosts

      public Collection<String> getExcludedHosts()
      Gets a collection of hosts to be excluded
      Returns:
      a collection of Strings
    • setExcludedHosts

      public void setExcludedHosts(Collection<String> excludedHosts)
      Sets a collection of hosts (URLs) to be excluded from the proxy configuration
      Parameters:
      excludedHosts - a collection of hosts URLs to exclude