|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lmax.api.account.LoginRequest
public class LoginRequest
Encapsulates a request to login to LMAX.
Nested Class Summary | |
---|---|
static class |
LoginRequest.ProductType
The product type to use to connect to lmax. |
Constructor Summary | |
---|---|
LoginRequest(java.lang.String username,
java.lang.String password)
Constructs a request to login to LMAX, will default the product type to CFD_LIVE. |
|
LoginRequest(java.lang.String username,
java.lang.String password,
LoginRequest.ProductType productType)
Constructs a request to login to LMAX. |
|
LoginRequest(java.lang.String username,
java.lang.String password,
LoginRequest.ProductType productType,
boolean checkProtocolVersion)
Constructs a request to login to LMAX. |
Method Summary | |
---|---|
java.lang.String |
getUri()
Returns the path to the login request. |
void |
writeTo(com.lmax.api.internal.xml.StructuredWriter writer)
Internal: Output this request. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LoginRequest(java.lang.String username, java.lang.String password, LoginRequest.ProductType productType, boolean checkProtocolVersion)
username
- The usernamepassword
- The passwordproductType
- The product type (CFD_LIVE or CFD_DEMO)checkProtocolVersion
- true to ensure that the protocol version used by the client and server are the same. Setting this to
false may cause errors or incorrect behaviour due to protocol changes.public LoginRequest(java.lang.String username, java.lang.String password, LoginRequest.ProductType productType)
username
- The usernamepassword
- The passwordproductType
- The product type (CFD_LIVE or CFD_DEMO)public LoginRequest(java.lang.String username, java.lang.String password)
username
- the usernamepassword
- the passwordMethod Detail |
---|
public java.lang.String getUri()
getUri
in interface com.lmax.api.internal.Request
public void writeTo(com.lmax.api.internal.xml.StructuredWriter writer)
writeTo
in interface com.lmax.api.internal.Request
writer
- The destination for the content of this request
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |