public class JoltSession extends Session
Constructor and Description |
---|
JoltSession(JoltSessionAttributes attr,
java.lang.String userName,
java.lang.String userRole,
java.lang.String userPassword,
java.lang.String appPassword)
The JoltSession constructor creates a JoltSession
object with attributes from the JoltSessionAttributes
class.
|
Modifier and Type | Method and Description |
---|---|
void |
endSession()
The endSession method terminates the session and ;
forced shutdown was used.
|
JoltRepository |
getRepository()
Get the client repository that caches service definitions.
|
int |
getRequestVersion()
Get the Jolt client runtime request version.
|
boolean |
isAlive()
The isAlive method returns a Boolean (true/false) value indicating
whether the client session is valid or not.
|
void |
onDisconnect()
Default event handler for the loss of network connection.
|
void |
onReply(JoltReply reply)
The onReply method is the default event handler for all events.
|
public JoltSession(JoltSessionAttributes attr, java.lang.String userName, java.lang.String userRole, java.lang.String userPassword, java.lang.String appPassword) throws SessionException
attr
- The session attributes.userName
- The user name or null.userRole
- The user role or null.userPassword
- The user password or null.appPassword
- The application password or null.SessionException
- An exception thrown if one of the
session attributes is invalid or the authentication fails.public void endSession() throws SessionException
endSession
in class Session
SessionException
public boolean isAlive()
public void onReply(JoltReply reply)
public void onDisconnect()
public JoltRepository getRepository()
public int getRequestVersion()