public class Session
extends java.lang.Object
Constructor and Description |
---|
Session(java.lang.String sessionId,
long sessionTime,
java.lang.String username)
The constructor for a new session for a user.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getId()
Returns the session ID.
|
long |
getTimeCreated()
Returns the time the session was created.
|
java.lang.String |
getUsername()
Returns the name of the
User . |
public Session(java.lang.String sessionId, long sessionTime, java.lang.String username)
sessionId
- The session ID.sessionTime
- The time in milliseconds the session was created.username
- The name of the User
who created this session.public java.lang.String getId()
public long getTimeCreated()
public java.lang.String getUsername()
User
.