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
Constructor with host name and port- Parameters:
host
-String
port
- integer
-
HostConnection
Constructor with host name, port and authentication scheme -
HostConnection
Complete constructor
-
-
Method Details
-
getProtocol
Gets the connection protocol- Returns:
String
-
setProtocol
Sets the connection protocol- Parameters:
protocol
-String
-
getHost
Gets the host name- Returns:
String
-
setHost
Sets the host name- Parameters:
host
-String
-
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
Gets the authentication scheme- Returns:
String
-
setScheme
Sets the authentication scheme- Parameters:
scheme
-String
-
getRealm
Gets the realm- Returns:
String
-
setRealm
Sets the realm- Parameters:
realm
-String
-