Class HostConnection

java.lang.Object
eu.europa.esig.dss.service.http.commons.HostConnection
All Implemented Interfaces:
Serializable

public class HostConnection extends Object implements Serializable
This object defines a configuration details for HTTP connection to the given host
See Also:
  • Constructor Details

    • HostConnection

      public HostConnection()
      Empty constructor
    • HostConnection

      public HostConnection(String host, int port)
      Constructor with host name and port
      Parameters:
      host - String
      port - integer
    • HostConnection

      public HostConnection(String host, int port, String scheme)
      Constructor with host name, port and authentication scheme
      Parameters:
      host - String
      port - integer
      scheme - String
    • HostConnection

      public HostConnection(String protocol, String host, int port, String scheme, String realm)
      Complete constructor
      Parameters:
      protocol - String
      host - String
      port - integer
      scheme - String
      realm - String
  • Method Details

    • getProtocol

      public String getProtocol()
      Gets the connection protocol
      Returns:
      String
    • setProtocol

      public void setProtocol(String protocol)
      Sets the connection protocol
      Parameters:
      protocol - String
    • getHost

      public String getHost()
      Gets the host name
      Returns:
      String
    • setHost

      public void setHost(String host)
      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

      public String getScheme()
      Gets the authentication scheme
      Returns:
      String
    • setScheme

      public void setScheme(String scheme)
      Sets the authentication scheme
      Parameters:
      scheme - String
    • getRealm

      public String getRealm()
      Gets the realm
      Returns:
      String
    • setRealm

      public void setRealm(String realm)
      Sets the realm
      Parameters:
      realm - String