Class SmbRemoteDirectorySetup

    • Field Detail

      • m_Domain

        protected String m_Domain
        the domain.
      • m_Share

        protected String m_Share
        the share to access.
      • m_User

        protected String m_User
        the SMB user to use.
      • m_Password

        protected BasePassword m_Password
        the SMB password to use.
      • m_Host

        protected String m_Host
        the host.
      • m_RemoteDir

        protected String m_RemoteDir
        the directory to list.
      • m_ListHidden

        protected boolean m_ListHidden
        whether to list hidden files/dirs.
      • m_Client

        protected transient com.hierynomus.smbj.SMBClient m_Client
        the SMB client.
      • m_Connection

        protected transient com.hierynomus.smbj.connection.Connection m_Connection
        the SMB connection.
      • m_Session

        protected transient com.hierynomus.smbj.session.Session m_Session
        the SMB authentication context.
    • Constructor Detail

      • SmbRemoteDirectorySetup

        public SmbRemoteDirectorySetup()
    • Method Detail

      • setHost

        public void setHost​(String value)
        Sets the host to connect to.
        Parameters:
        value - the host name/ip
      • getHost

        public String getHost()
        Returns the host to connect to.
        Returns:
        the host name/ip
      • hostTipText

        public String hostTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setDomain

        public void setDomain​(String value)
        Sets the domain to connect to.
        Parameters:
        value - the domain name
      • getDomain

        public String getDomain()
        Returns the domain to connect to.
        Returns:
        the domain name
      • domainTipText

        public String domainTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setShare

        public void setShare​(String value)
        Sets the share to access.
        Parameters:
        value - the share
      • getShare

        public String getShare()
        Returns the share to access.
        Returns:
        the share
      • shareTipText

        public String shareTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setUser

        public void setUser​(String value)
        Sets the SMB user to use.
        Parameters:
        value - the user name
      • getUser

        public String getUser()
        Returns the SMB user name to use.
        Returns:
        the user name
      • userTipText

        public String userTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • passwordTipText

        public String passwordTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setRemoteDir

        public void setRemoteDir​(String value)
        Sets the remote directory.
        Parameters:
        value - the remote directory
      • getRemoteDir

        public String getRemoteDir()
        Returns the remote directory.
        Returns:
        the remote directory.
      • remoteDirTipText

        public String remoteDirTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setListHidden

        public void setListHidden​(boolean value)
        Sets whether to list hidden files/dirs.
        Parameters:
        value - true if to list
      • getListHidden

        public boolean getListHidden()
        Returns whether to list hidden files/dirs.
        Returns:
        true if to list
      • listHiddenTipText

        public String listHiddenTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • getSession

        public com.hierynomus.smbj.session.Session getSession()
        Returns the SMB authentication.
        Specified by:
        getSession in interface SMBSessionProvider
        Returns:
        the SMB authentication, null if not connected
      • newSession

        public com.hierynomus.smbj.session.Session newSession()
        Returns a new SMB authentication.
        Specified by:
        newSession in interface SMBSessionProvider
        Returns:
        the SMB authentication
      • requiresInitialization

        public boolean requiresInitialization()
        Returns whether the setup needs to be configured by the user or whether it can be used straight away.
        Specified by:
        requiresInitialization in interface RemoteDirectorySetup
        Returns:
        true if user needs to configure first
      • cleanUpSmb

        protected void cleanUpSmb()
        Cleans up the SMB components.
      • cleanUp

        public void cleanUp()
        Cleans up after the execution has finished. Also removes graphical components.
        Specified by:
        cleanUp in interface CleanUpHandler