Class Login
- java.lang.Object
-
- com.smartfoxserver.v2.controllers.BaseControllerCommand
-
- com.smartfoxserver.v2.controllers.system.Login
-
- All Implemented Interfaces:
com.smartfoxserver.v2.controllers.IControllerCommand
public class Login extends com.smartfoxserver.v2.controllers.BaseControllerCommand
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
KEY_ID
static java.lang.String
KEY_PARAMS
static java.lang.String
KEY_PASSWORD
static java.lang.String
KEY_PRIVILEGE_ID
static java.lang.String
KEY_RECONNECTION_SECONDS
static java.lang.String
KEY_ROOMLIST
static java.lang.String
KEY_USERNAME
static java.lang.String
KEY_ZONENAME
-
Constructor Summary
Constructors Constructor Description Login()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
customLogin(ISFSObject sfso, com.smartfoxserver.bitswarm.io.IRequest request, Zone zone)
void
execute(com.smartfoxserver.bitswarm.io.IRequest request)
protected void
resolveIpAddress(ISession session)
boolean
validate(com.smartfoxserver.bitswarm.io.IRequest request)
protected void
validateEncryptionStatus(ISession sender, com.smartfoxserver.bitswarm.io.IRequest request, Zone zone)
protected void
validateFormalParameters(ISFSObject sfso)
protected void
validateLoginErrors(ISession session, Zone zone)
-
-
-
Field Detail
-
KEY_USERNAME
public static final java.lang.String KEY_USERNAME
- See Also:
- Constant Field Values
-
KEY_PASSWORD
public static final java.lang.String KEY_PASSWORD
- See Also:
- Constant Field Values
-
KEY_ZONENAME
public static final java.lang.String KEY_ZONENAME
- See Also:
- Constant Field Values
-
KEY_PARAMS
public static final java.lang.String KEY_PARAMS
- See Also:
- Constant Field Values
-
KEY_PRIVILEGE_ID
public static final java.lang.String KEY_PRIVILEGE_ID
- See Also:
- Constant Field Values
-
KEY_ID
public static final java.lang.String KEY_ID
- See Also:
- Constant Field Values
-
KEY_ROOMLIST
public static final java.lang.String KEY_ROOMLIST
- See Also:
- Constant Field Values
-
KEY_RECONNECTION_SECONDS
public static final java.lang.String KEY_RECONNECTION_SECONDS
- See Also:
- Constant Field Values
-
-
Method Detail
-
validate
public boolean validate(com.smartfoxserver.bitswarm.io.IRequest request) throws SFSRequestValidationException
- Throws:
SFSRequestValidationException
-
validateFormalParameters
protected void validateFormalParameters(ISFSObject sfso) throws SFSRequestValidationException
- Throws:
SFSRequestValidationException
-
validateLoginErrors
protected void validateLoginErrors(ISession session, Zone zone) throws SFSRequestValidationException
- Throws:
SFSRequestValidationException
-
validateEncryptionStatus
protected void validateEncryptionStatus(ISession sender, com.smartfoxserver.bitswarm.io.IRequest request, Zone zone)
-
customLogin
protected boolean customLogin(ISFSObject sfso, com.smartfoxserver.bitswarm.io.IRequest request, Zone zone) throws SFSRequestValidationException
- Throws:
SFSRequestValidationException
-
resolveIpAddress
protected void resolveIpAddress(ISession session)
-
execute
public void execute(com.smartfoxserver.bitswarm.io.IRequest request) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-