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
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
-
setHost
-
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
-
setUser
-
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
-
setScheme
-
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
-