Class EndPoint


  • public class EndPoint
    extends java.lang.Object
    This class represents a file transfer end point object configuration
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.util.Properties props
      Configuration properties of an end point
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getHost()
      Returns the hostname of an end point
      java.lang.String getKeystore()
      Returns the keystore of an end point
      java.lang.String getPassphrase()
      Returns the passphrase of an end point
      java.lang.String getPassword()
      Returns the user password of an end point
      java.lang.String getPath()
      Returns the file path of an end point
      java.lang.String getPort()
      Returns the port number of an end point
      java.lang.String getProtocol()
      Returns the protocol to connect to an end point
      java.lang.String getUser()
      Returns the username of an end point
      boolean isLocal()
      Returns the end point is Local/Remote
      void setHost​(java.lang.String host)
      Sets the hostname of an end point
      void setKeystore​(java.lang.String key)
      Sets the keystore of an end point
      void setPassphrase​(java.lang.String passph)
      Sets the passphrase of an end point
      void setPassword​(java.lang.String pass)
      Sets the user password of an end point
      void setPath​(java.lang.String path)
      Sets the path of an end point
      void setPort​(java.lang.String po)
      Sets the port number of an end point
      void setProtocol​(java.lang.String p)
      Sets the protocol to connect to an end point
      void setSourceFile​(java.lang.String s)
      Sets the path of the source file
      void setUser​(java.lang.String user)
      Sets the username of an end point
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • props

        public java.util.Properties props
        Configuration properties of an end point
    • Method Detail

      • getProtocol

        public java.lang.String getProtocol()
        Returns the protocol to connect to an end point
        Returns:
        protocol to connect to an end point
      • setProtocol

        public void setProtocol​(java.lang.String p)
        Sets the protocol to connect to an end point
        Parameters:
        p - protocol to connect to an end point
      • getHost

        public java.lang.String getHost()
        Returns the hostname of an end point
        Returns:
        hostname of an end point
      • setHost

        public void setHost​(java.lang.String host)
        Sets the hostname of an end point
        Parameters:
        host - hostname of an end point
      • getPort

        public java.lang.String getPort()
        Returns the port number of an end point
        Returns:
        port number of an end point
      • setPort

        public void setPort​(java.lang.String po)
        Sets the port number of an end point
        Parameters:
        po - port number of an end point
      • getPath

        public java.lang.String getPath()
        Returns the file path of an end point
        Returns:
        file path of an end point
      • setPath

        public void setPath​(java.lang.String path)
        Sets the path of an end point
        Parameters:
        path - path of an end point
      • getUser

        public java.lang.String getUser()
        Returns the username of an end point
        Returns:
        username of an end point
      • setUser

        public void setUser​(java.lang.String user)
        Sets the username of an end point
        Parameters:
        user - username of an end point
      • getPassword

        public java.lang.String getPassword()
        Returns the user password of an end point
        Returns:
        user password of an end point
      • setPassword

        public void setPassword​(java.lang.String pass)
        Sets the user password of an end point
        Parameters:
        pass - user password of an end point
      • getKeystore

        public java.lang.String getKeystore()
        Returns the keystore of an end point
        Returns:
        keystore of an end point
      • setKeystore

        public void setKeystore​(java.lang.String key)
        Sets the keystore of an end point
        Parameters:
        key - keystore of an end point
      • getPassphrase

        public java.lang.String getPassphrase()
        Returns the passphrase of an end point
        Returns:
        passphrase of an end point
      • setPassphrase

        public void setPassphrase​(java.lang.String passph)
        Sets the passphrase of an end point
        Parameters:
        passph - passphrase of an end point
      • isLocal

        public boolean isLocal()
        Returns the end point is Local/Remote
        Returns:
        true if the end point is local
      • setSourceFile

        public void setSourceFile​(java.lang.String s)
        Sets the path of the source file
        Parameters:
        s - Path of the source file