Class ProxyProperties
java.lang.Object
eu.europa.esig.dss.service.http.proxy.ProxyProperties
- All Implemented Interfaces:
Serializable
This class is a DTO which contains proxy properties for HTTP or HTTPS
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets a collection of hosts to be excludedgetHost()
Returns the proxy host to usechar[]
Returns the password to useint
getPort()
Returns the port to useGets the host connection schemegetUser()
Returns the user to usevoid
setExcludedHosts
(Collection<String> excludedHosts) Sets a collection of hosts (URLs) to be excluded from the proxy configurationvoid
Set the proxy hostvoid
setPassword
(char[] password) Set the proxy passwordvoid
setPassword
(String password) Deprecated.since DSS 5.12.void
setPort
(int port) Set the proxy portvoid
Sets the host connection scheme (e.g.void
Set the proxy user
-
Constructor Details
-
ProxyProperties
public ProxyProperties()Default constructor with null values
-
-
Method Details
-
getHost
Returns the proxy host to use- Returns:
- the proxy host
-
setHost
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
Returns the user to use- Returns:
- the proxy user
-
setUser
Set the proxy user- Parameters:
user
- the user to use
-
getPassword
public char[] getPassword()Returns the password to use- Returns:
- the proxy password
-
setPassword
Deprecated.since DSS 5.12. Use#setPassword(char[] password)
Set the proxy password- Parameters:
password
- the password to use
-
setPassword
public void setPassword(char[] password) Set the proxy password- Parameters:
password
- the password to use
-
getScheme
Gets the host connection scheme- Returns:
String
-
setScheme
Sets the host connection scheme (e.g. "http", "https", etc.)- Parameters:
scheme
-String
-
getExcludedHosts
Gets a collection of hosts to be excluded- Returns:
- a collection of
String
s
-
setExcludedHosts
Sets a collection of hosts (URLs) to be excluded from the proxy configuration- Parameters:
excludedHosts
- a collection of hosts URLs to exclude
-