Class SessionFactory


  • public class SessionFactory
    extends Object
    A factory with static methods for creating (defined) sessions.
    Version:
    $Id$
    • Constructor Detail

      • SessionFactory

        public SessionFactory()
    • Method Detail

      • create

        public static Session create​(com.seagullsw.common.emulator.physical.base.connection2.ConnectionBuilder connectionBuilder)
        Create a (defined) Session.
        Parameters:
        connectionBuilder - the connection builder to use
        Returns:
        A Session.
      • create

        public static Session create​(com.seagullsw.common.emulator.physical.base.connection2.ConnectionBuilder connectionBuilder,
                                     com.seagullsw.common.identification.model.ApplicationDefinition applicationDefinition)
        Create a (defined) Session.
        Parameters:
        connectionBuilder - the connection builder to use
        applicationDefinition - the application definition with identification information
        Returns:
        a Session.
      • create

        public static Session create​(String scheme,
                                     String host,
                                     int port,
                                     Map<String,​Object> properties,
                                     String applicationDefinitionLocation)
        Create a (defined) Session. For now, the identification files are provided as just a classpath-relative directory name. That directory should contain .screen files plus optionally a .identification or runtime.lwi file (for automatic identification).
        Parameters:
        scheme - The type of emulator (see SCHEME constants in Emulators).
        host - The name of the host to connect to.
        port - The socket port on the host.
        properties - Optional set of connection properties.
        applicationDefinitionLocation - A classpath-relative directory containing identification files.
        Returns:
        A Session.
      • create

        public static Session create​(String scheme,
                                     String host,
                                     int port,
                                     Map<String,​Object> properties,
                                     com.seagullsw.common.identification.model.ApplicationDefinition applicationDefinition)
        Create a (defined) Session.
        Parameters:
        scheme - The type of emulator (see SCHEME constants in Emulators).
        host - The name of the host to connect to.
        port - The socket port on the host.
        properties - Optional set of connection properties.
        applicationDefinition - The application definition.
        Returns:
        A Session.
      • create

        public static Session create​(String scheme,
                                     String host,
                                     int port,
                                     Map<String,​Object> properties,
                                     com.seagullsw.common.identification.model.ApplicationDefinitions applicationDefinitions)
        Create a (defined) Session.
        Parameters:
        scheme - The type of emulator (see SCHEME constants in Emulators).
        host - The name of the host to connect to.
        port - The socket port on the host.
        properties - Optional set of connection properties.
        applicationDefinitions - The application definitions.
        Returns:
        A Session.
      • create

        public static Session create​(String scheme,
                                     String host,
                                     int port)
        Create a (defined) Session.
        Parameters:
        scheme - The type of emulator (see SCHEME constants in Emulators).
        host - The name of the host to connect to.
        port - The socket port on the host.
        Returns:
        A Session.