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 SummaryConstructorsConstructorDescriptionEmpty 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 SummaryModifier and TypeMethodDescriptiongetHost()Gets the host nameintgetPort()Gets the host portGets the connection protocolgetRealm()Gets the realmGets the authentication schemevoidSets the host namevoidsetPort(int port) Sets the host port Default : -1 (any port)voidsetProtocol(String protocol) Sets the connection protocolvoidSets the realmvoidSets the authentication scheme
- 
Constructor Details- 
HostConnectionpublic HostConnection()Empty constructor
- 
HostConnectionConstructor with host name and port- Parameters:
- host-- String
- port- integer
 
- 
HostConnectionConstructor with host name, port and authentication scheme
- 
HostConnectionComplete constructor
 
- 
- 
Method Details- 
getProtocolGets the connection protocol- Returns:
- String
 
- 
setProtocolSets the connection protocol- Parameters:
- protocol-- String
 
- 
getHostGets the host name- Returns:
- String
 
- 
setHostSets the host name- Parameters:
- host-- String
 
- 
getPortpublic int getPort()Gets the host port- Returns:
- integer
 
- 
setPortpublic void setPort(int port) Sets the host port Default : -1 (any port)- Parameters:
- port- integer value
 
- 
getSchemeGets the authentication scheme- Returns:
- String
 
- 
setSchemeSets the authentication scheme- Parameters:
- scheme-- String
 
- 
getRealmGets the realm- Returns:
- String
 
- 
setRealmSets the realm- Parameters:
- realm-- String
 
 
-