Class BareSessionFactory

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

public class BareSessionFactory extends Object
A factory with static methods for creating bare sessions.
Version:
$Id: SessionFactory.java 20144 2012-04-18 13:46:07Z MZibra $
  • Constructor Details

    • BareSessionFactory

      public BareSessionFactory()
  • Method Details

    • create

      public static BareSession create(com.seagullsw.common.emulator.physical.base.connection2.ConnectionBuilder connectionBuilder)
      Creates a BareSession.
      Parameters:
      connectionBuilder - the connection builder to use
      Returns:
      a BareSession.
    • create

      public static BareSession create(com.seagullsw.common.emulator.physical.base.connection2.ConnectionBuilder connectionBuilder, String scheme, String host, int port, Map<String,Object> properties)
      Creates a BareSession.
      Parameters:
      connectionBuilder - the connection builder to use.
      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.
      Returns:
      a BareSession.
    • create

      public static BareSession create(String scheme, String host, int port, Map<String,Object> properties)
      Creates a BareSession.
      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.
      Returns:
      a BareSession.
    • create

      public static BareSession create(String scheme, String host, int port)
      Creates a BareSession.
      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 BareSession.
    • create

      public static BareSession create(URI uri)
      Creates a BareSession.
      Parameters:
      uri - Uniform Resource Identifier.
      Returns:
      a BareSession.