com.lmax.api
Class LmaxApi

java.lang.Object
  extended by com.lmax.api.LmaxApi

public class LmaxApi
extends java.lang.Object

The root object for accessing the LMAX API.

For full information on how to use the LMAX API, see the Tutorial.


Field Summary
static java.lang.String PROTOCOL_VERSION
           
 
Constructor Summary
  LmaxApi()
          Constructs an LMAX Api entry point with default options.
protected LmaxApi(com.lmax.api.internal.ConnectionFactory connectionFactory, com.lmax.api.internal.SessionFactory sessionFactory, com.lmax.api.internal.HttpInvoker httpInvoker, com.lmax.api.internal.XmlParser saxParser)
           
  LmaxApi(java.lang.String urlBase)
          Constructs an LMAX Api entry point to connect to the specified url.
  LmaxApi(java.lang.String urlBase, java.lang.String clientIdentifier)
          Constructs an LMAX Api entry point to connect to the specified url.
 
Method Summary
 void login(LoginRequest message, LoginCallback callback)
          Logs into the LMAX trading system using the specified login details.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROTOCOL_VERSION

public static final java.lang.String PROTOCOL_VERSION
See Also:
Constant Field Values
Constructor Detail

LmaxApi

public LmaxApi()
Constructs an LMAX Api entry point with default options.


LmaxApi

public LmaxApi(java.lang.String urlBase)
Constructs an LMAX Api entry point to connect to the specified url.

Parameters:
urlBase - The protocol hostname and port specification for the connection

LmaxApi

public LmaxApi(java.lang.String urlBase,
               java.lang.String clientIdentifier)
Constructs an LMAX Api entry point to connect to the specified url.

Parameters:
urlBase - The protocol hostname and port specification for the connection
clientIdentifier - Identifies the client in HTTP requests

LmaxApi

protected LmaxApi(com.lmax.api.internal.ConnectionFactory connectionFactory,
                  com.lmax.api.internal.SessionFactory sessionFactory,
                  com.lmax.api.internal.HttpInvoker httpInvoker,
                  com.lmax.api.internal.XmlParser saxParser)
Method Detail

login

public void login(LoginRequest message,
                  LoginCallback callback)
Logs into the LMAX trading system using the specified login details. Will notify the listener on success or failure.

Parameters:
message - a message containing the required login details
callback - the object to notify of login success/failure