Package com.rs.seagull.emulator.api
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 SessionFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods 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.String
toString()
-
-
-
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 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
public String toString()
- Overrides:
toString
in classObject
- See Also:
Object.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.
-
-