Class SessionParametersBuilder



  • public class SessionParametersBuilder
    extends java.lang.Object
    Builder class for instances of
    See Also:
    D2SessionParameters
    • Constructor Detail

      • SessionParametersBuilder

        public SessionParametersBuilder​()
    • Method Detail

      • create

        public static D2SessionParameters create​(java.lang.String login,
                                                 java.lang.String password)
        Utility method to create parameters for dynamic session with login and password.
        Parameters:
        login -
        password -
        Returns:
      • create

        public static D2SessionParameters create​(java.lang.String login,
                                                 java.lang.String password,
                                                 java.lang.String sessionName)
        Utility method to create parameters for dynamic session with login, password and sessionName.
        Parameters:
        login -
        password -
        sessionName -
        Returns:
      • create

        public static D2SessionParameters create​(java.lang.String login,
                                                 java.lang.String password,
                                                 java.lang.String sessionName,
                                                 boolean staticProcess)
        Utility method to create parameters with login, password, sessionName and choice for static session.
        Parameters:
        login -
        password -
        sessionName -
        Returns:
      • build

        public D2SessionParameters build​()
        Create initialized instance of session parameters from previously set properties.
        Returns:
        initialized version of session parameters
      • hostName

        public SessionParametersBuilder hostName​(java.lang.String hostName)
        Set new value of hostName and get reference to self.
        Parameters:
        hostName - new value of hostName
        Returns:
        reference to self
      • password

        public SessionParametersBuilder password​(java.lang.String password)
        Set new value of password and get reference to self.
        Parameters:
        password - new value of password
        Returns:
        reference to self
      • sessionName

        public SessionParametersBuilder sessionName​(java.lang.String sessionName)
        Set new value of sessionName and get reference to self.
        Parameters:
        sessionName - new value of sessionName
        Returns:
        reference to self
      • staticProcess

        public SessionParametersBuilder staticProcess​(boolean staticProcess)
        Set new value of staticProcess and get reference to self.
        Parameters:
        staticProcess - new value of staticProcess
        Returns:
        reference to self
      • userName

        public SessionParametersBuilder userName​(java.lang.String userName)
        Set new value of userName and get reference to self.
        Parameters:
        userName - new value of userName
        Returns:
        reference to self