|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Session
Represents a user's session (login session) in the system. Can hold some additional attributes as needed, but the underlying implementation may limit the number and size of attributes to ensure session replication is not impacted negatively.
| Method Summary | |
|---|---|
void |
clear()
Purges all data from this session and effectively resets it to an anonymous session. |
String |
getAttribute(String key)
Get an attribute from the session if one exists. |
Map<String,String> |
getAttributes()
Get all attributes of this session. |
String |
getOriginatingHostIP()
|
String |
getOriginatingHostName()
|
String |
getServerId()
|
String |
getSessionId()
|
String |
getUserEID()
Get the external/enterprise user ID for this session. |
String |
getUserId()
Return the internal user ID for this session. |
boolean |
isActive()
|
void |
setAttribute(String key,
String value)
Set an attribute on a session. |
| Methods inherited from interface javax.servlet.http.HttpSession |
|---|
getAttributeNames, getCreationTime, getId, getLastAccessedTime, getMaxInactiveInterval, getServletContext, getSessionContext, getValue, getValueNames, invalidate, isNew, putValue, removeAttribute, removeValue, setAttribute, setMaxInactiveInterval |
| Method Detail |
|---|
String getSessionId()
HttpSession.getId()
from HttpSession unless no session id was specified when the
session was bound.String getUserId()
String getUserEID()
boolean isActive()
String getServerId()
String getOriginatingHostIP()
String getOriginatingHostName()
String getAttribute(String key)
getAttribute in interface javax.servlet.http.HttpSessionkey - the key for the attribute
void setAttribute(String key,
String value)
key - the key for the attributevalue - the value (if this is null then the attribute is removed)Map<String,String> getAttributes()
void clear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||