|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SessionContext
An interface by which protocol handlers can get access to the session context This is the abstraction of the httpSession and portions of the servletContext in J2EE containers Note: All the store/retrieve methods have two versions. One version is a Global attribute store and retrieve while the other stores and retrieves attribute/values in a specific context
| Method Summary | |
|---|---|
boolean |
attributeExists(String attribute)
Check if there is a value attached to a given attribute. |
boolean |
attributeExists(String authSession,
String attribute)
Check if there is a value attached to a given attribute in the indicated authentication session. |
void |
deleteAttribute(String attribute)
Deletes the value associated with an attribute if it exists. |
void |
deleteAttribute(String authSession,
String attribute)
Deletes the value associated with an attribute if it exists. |
String |
getCurrentRequestUrl()
|
String |
getProtectedResource()
|
String |
getRealPath(String path)
|
Object |
retrieveAttribute(String attribute)
Retrieves attribute associated with a given name |
Object |
retrieveAttribute(String authSession,
String attribute)
Retrieves attribute associated with a given name in the given authentication session |
String |
setProtectedResource(String rsrc)
|
int |
storeAttribute(String attribute,
Object value)
Associates a value with a key in the session store. |
int |
storeAttribute(String authSession,
String attribute,
Object value)
Associates a value with a key in the session store of a particular authentication session. |
| Method Detail |
|---|
int storeAttribute(String attribute,
Object value)
attribute - String to specify namevalue - associated to this attribute
Object retrieveAttribute(String attribute)
attribute - key for retrieval.
boolean attributeExists(String attribute)
attribute - key to check for
void deleteAttribute(String attribute)
attribute -
int storeAttribute(String authSession,
String attribute,
Object value)
authSession - name of the authentication sessionattribute - String to specify namevalue - associated to this attribute
Object retrieveAttribute(String authSession,
String attribute)
authSession - name of the authentication sessionattribute - key for retrieval.
boolean attributeExists(String authSession,
String attribute)
authSession - name of the authentication sessionattribute - key to check for
void deleteAttribute(String authSession,
String attribute)
authSession - name of the authentication sessionattribute - String getProtectedResource()
String setProtectedResource(String rsrc)
rsrc - the protected resource which triggered this authentication requestString getCurrentRequestUrl()
String getRealPath(String path)
path - is the virtual path
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||