Class SessionFactory

java.lang.Object
com.rs.seagull.emulator.api.SessionFactory

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Session
    create(com.seagullsw.common.emulator.physical.base.connection2.ConnectionBuilder connectionBuilder)
    Create a (defined) Session.
    static Session
    create(com.seagullsw.common.emulator.physical.base.connection2.ConnectionBuilder connectionBuilder, com.seagullsw.common.identification.model.ApplicationDefinition applicationDefinition)
    Create a (defined) Session.
    static Session
    create(String scheme, String host, int port)
    Create a (defined) Session.
    static Session
    create(String scheme, String host, int port, Map<String,Object> properties, com.seagullsw.common.identification.model.ApplicationDefinition applicationDefinition)
    Create a (defined) Session.
    static Session
    create(String scheme, String host, int port, Map<String,Object> properties, com.seagullsw.common.identification.model.ApplicationDefinitions applicationDefinitions)
    Create a (defined) Session.
    static Session
    create(String scheme, String host, int port, Map<String,Object> properties, String applicationDefinitionLocation)
    Create a (defined) Session.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SessionFactory

      public SessionFactory()
  • Method Details

    • 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.
    • toString

      public String toString()
      Overrides:
      toString in class Object
      See Also:
    • 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.