Session.Definition, Session.Mem, Session.Store
Constructor and Description |
---|
SessionImpl(ParserExecutor resolver,
boolean isNew,
String sessionId,
long timeout) |
Modifier and Type | Method and Description |
---|---|
void |
aboutToSave() |
long |
accessedAt()
The last time the client sent a request associated with this session, as the number of
milliseconds since midnight January 1, 1970 GMT, and marked by the time the container
received the request.
|
Map<String,String> |
attributes() |
long |
createdAt() |
void |
destroy()
Invalidates this session then unset any objects bound to it.
|
long |
expiryAt() |
Mutant |
get(String name)
Get a object from this session.
|
String |
id() |
boolean |
isDirty() |
boolean |
isNew() |
boolean |
isSet(String name)
Test if the var name exists inside the session local attributes.
|
long |
savedAt() |
Session |
set(String name,
String value)
Set a session local using a the given name.
|
String |
toString() |
void |
touch() |
Session |
unset()
Unset/remove all the session data.
|
Mutant |
unset(String name)
Remove a local value (if any) from session locals.
|
public SessionImpl(ParserExecutor resolver, boolean isNew, String sessionId, long timeout)
public long createdAt()
public long accessedAt()
Session
Actions that your application takes, such as getting or setting a value associated with the session, do not affect the access time.
accessedAt
in interface Session
public long expiryAt()
public Mutant get(String name)
Session
public boolean isSet(String name)
Session
public Map<String,String> attributes()
attributes
in interface Session
public Session set(String name, String value)
Session
public Mutant unset(String name)
Session
public Session unset()
Session
public void destroy()
Session
public boolean isNew()
public boolean isDirty()
public long savedAt()
public void touch()
public void aboutToSave()
Copyright © 2015. All rights reserved.