|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectse.kmr.scam.client.http.util.Context
Provides access to the different context available in the HTTP interface.
| Field Summary | |
static String |
APPLICATION
Identifier for application scope |
static String |
REQUEST
Identifer for request scope |
static String |
SESSION
Identifier for session scope |
| Constructor Summary | |
Context()
|
|
| Method Summary | |
static Object |
getAttribute(String name,
HttpServletRequest request)
Gets a named attribute from context scope. |
static Object |
getAttribute(String name,
HttpServletRequest request,
String scope)
Gets a named attribute from in a defined context scope. |
static Collection |
listAttributes(String name,
HttpServletRequest request)
List a named attribute. |
static Collection |
listAttributes(String name,
HttpServletRequest request,
String scope)
List a named attribute in a defined context scope. |
static void |
setAttribute(String name,
Object attribute,
HttpServletRequest request,
String scope)
Binds an object to name in designated context. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String REQUEST
public static final String SESSION
public static final String APPLICATION
| Constructor Detail |
public Context()
| Method Detail |
public static Object getAttribute(String name,
HttpServletRequest request)
name - Name of attributerequest - Request object
public static Collection listAttributes(String name,
HttpServletRequest request)
name - Name of attributerequest - Request object
getAttribute(String, HttpServletRequest)
public static Object getAttribute(String name,
HttpServletRequest request,
String scope)
name - Name of attributerequest - Requset objectscope - Find attribute in this context scope
public static Collection listAttributes(String name,
HttpServletRequest request,
String scope)
name - Name of attributerequest - Request object
getAttribute(String, HttpServletRequest, String)
public static void setAttribute(String name,
Object attribute,
HttpServletRequest request,
String scope)
name - Bind the object to this name.attribute - Object to bind.request - Bind object using this request object.scope - Defines in wich context the object is bound
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||