Class HostConnection
java.lang.Object
eu.europa.esig.dss.service.http.commons.HostConnection
- All Implemented Interfaces:
Serializable
This object defines a configuration details for HTTP connection to the given host
- See Also:
-
Constructor Summary
ConstructorDescriptionEmpty constructorHostConnection
(String host, int port) Constructor with host name and portHostConnection
(String host, int port, String scheme) Constructor with host name, port and authentication schemeHostConnection
(String protocol, String host, int port, String scheme, String realm) Complete constructor -
Method Summary
Modifier and TypeMethodDescriptiongetHost()
Gets the host nameint
getPort()
Gets the host portGets the connection protocolgetRealm()
Gets the realmGets the authentication schemevoid
Sets the host namevoid
setPort
(int port) Sets the host port Default : -1 (any port)void
setProtocol
(String protocol) Sets the connection protocolvoid
Sets the realmvoid
Sets the authentication scheme
-
Constructor Details
-
HostConnection
public HostConnection()Empty constructor -
HostConnection
-
HostConnection
-
HostConnection
-
-
Method Details
-
getProtocol
-
setProtocol
-
getHost
-
setHost
-
getPort
public int getPort()Gets the host port- Returns:
- integer
-
setPort
public void setPort(int port) Sets the host port Default : -1 (any port)- Parameters:
port
- integer value
-
getScheme
-
setScheme
-
getRealm
-
setRealm
-