Class DefaultSessionInfoFactory

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      SessionInfo create()
      Creates a session info from the default property file holding the connection parameters.
      SessionInfo create​(java.lang.String propertiesName)
      Creates a session info from a property file holding the connection parameters.
      SessionInfo create​(java.lang.String username, char[] password, java.lang.String propertiesName)
      Creates a session info from a username, password and property file holding the connection parameters.
      SessionInfo create​(java.util.Properties properties)
      Creates a session info from a properties object.
      • Methods inherited from class java.lang.Object

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

      • DefaultSessionInfoFactory

        public DefaultSessionInfoFactory()
    • Method Detail

      • create

        public SessionInfo create​(java.lang.String username,
                                  char[] password,
                                  java.lang.String propertiesName)
        Description copied from interface: SessionInfoFactory
        Creates a session info from a username, password and property file holding the connection parameters.
        Specified by:
        create in interface SessionInfoFactory
        Parameters:
        username - is the name of the user, null if System.getProperty("user.name")
        password - is the password, null if none
        propertiesName - name of additional properties resource, null if default
        Returns:
        the created session info
      • create

        public SessionInfo create​(java.lang.String propertiesName)
        Description copied from interface: SessionInfoFactory
        Creates a session info from a property file holding the connection parameters.
        Specified by:
        create in interface SessionInfoFactory
        Parameters:
        propertiesName - name of additional properties resource, null if default
        Returns:
        the created session info
      • create

        public SessionInfo create​(java.util.Properties properties)
        Description copied from interface: SessionInfoFactory
        Creates a session info from a properties object.
        Specified by:
        create in interface SessionInfoFactory
        Parameters:
        properties - the properties
        Returns:
        the created session info
      • create

        public SessionInfo create()
        Description copied from interface: SessionInfoFactory
        Creates a session info from the default property file holding the connection parameters.
        Specified by:
        create in interface SessionInfoFactory
        Returns:
        the created session info