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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets a collection of hosts to be excludedgetHost()Returns the proxy host to useReturns the password to useintgetPort()Returns the port to useGets the host connection schemegetUser()Returns the user to usevoidsetExcludedHosts(Collection<String> excludedHosts) Sets a collection of hosts (URLs) to be excluded from the proxy configurationvoidSet the proxy hostvoidsetPassword(String password) Set the proxy passwordvoidsetPort(int port) Set the proxy portvoidSets the host connection scheme (e.g.voidSet 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
Returns the password to use- Returns:
- the proxy password
-
setPassword
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
Strings
-
setExcludedHosts
Sets a collection of hosts (URLs) to be excluded from the proxy configuration- Parameters:
excludedHosts- a collection of hosts URLs to exclude
-