Package com.rs.seagull.emulator.api
Class SessionFactory
java.lang.Object
com.rs.seagull.emulator.api.SessionFactory
A factory with static methods for creating (defined) sessions.
- Version:
- $Id$
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 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.toString()
-
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 useapplicationDefinition
- 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
-
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
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.
-