|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
public int storeAttribute(String attribute, Object value)
attribute
- String to specify namevalue
- associated to this attribute
public Object retrieveAttribute(String attribute)
attribute
- key for retrieval.
public boolean attributeExists(String attribute)
attribute
- key to check for
public void deleteAttribute(String attribute)
attribute
- public int storeAttribute(String authSession, String attribute, Object value)
authSession
- name of the authentication sessionattribute
- String to specify namevalue
- associated to this attribute
public Object retrieveAttribute(String authSession, String attribute)
authSession
- name of the authentication sessionattribute
- key for retrieval.
public boolean attributeExists(String authSession, String attribute)
authSession
- name of the authentication sessionattribute
- key to check for
public void deleteAttribute(String authSession, String attribute)
authSession
- name of the authentication sessionattribute
- public String getProtectedResource()
public String setProtectedResource(String rsrc)
rsrc
- the protected resource which triggered this authentication requestpublic String getCurrentRequestUrl()
public 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 |