Class ServerConnectionIdentifier


  • public class ServerConnectionIdentifier
    extends Object
    This class defines all necessary information to connect to a particular application server deployment backend.
    Author:
    Jerome Dochez
    • Constructor Detail

      • ServerConnectionIdentifier

        public ServerConnectionIdentifier()
        Creates a new instance of ServerConnectionIdentifier
      • ServerConnectionIdentifier

        public ServerConnectionIdentifier​(String hostName,
                                          int hostPort,
                                          String userName,
                                          String password,
                                          boolean secure)
    • Method Detail

      • getHostName

        public String getHostName()
        Getter for property hostName.
        Returns:
        Value of property hostName.
      • setHostName

        public void setHostName​(String hostName)
        Setter for property hostName.
        Parameters:
        hostName - New value of property hostName.
      • getHostPort

        public int getHostPort()
        Getter for property hostPort.
        Returns:
        Value of property hostPort.
      • setHostPort

        public void setHostPort​(int hostPort)
        Setter for property hostPort.
        Parameters:
        hostPort - New value of property hostPort.
      • getUserName

        public String getUserName()
        Getter for property userName.
        Returns:
        Value of property userName.
      • setUserName

        public void setUserName​(String userName)
        Setter for property userName.
        Parameters:
        userName - New value of property userName.
      • getPassword

        public String getPassword()
        Getter for property password.
        Returns:
        Value of property password.
      • setPassword

        public void setPassword​(String password)
        Setter for property password.
        Parameters:
        password - New value of property password.
      • setSecure

        public void setSecure​(boolean secure)
      • isSecure

        public boolean isSecure()
      • getProtocol

        public String getProtocol()
        Getter for property protocol. the protocol can only be two values: either DefaultConfiguration.S1_HTTPS_PROTOCOL, if secure or DefaultConfiguration.S1_HTTP_PROTOCOL, if not secure
        Returns:
        Value of property protocol.
      • equals

        public boolean equals​(Object other)
        Overrides:
        equals in class Object
        Returns:
        true if I am the equals to the other object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object