|
© 2003 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bea.netuix.servlets.controls.ControlContext
Base class for all context classes. The control framework provides control context of a given type (a subclass) for each control. Applications may use the HTTP request object to retrive a given control context object.
Field Summary | |
protected static Debug |
debug
|
Constructor Summary | |
protected |
ControlContext(com.bea.netuix.nf.UIControl control)
Creates a ControlContext instance. |
Method Summary | |
static ControlContext |
getContextFromRequest(Class type,
HttpServletRequest request)
Returns ControlContext for the given HTTP request. |
protected String |
getContextKey()
Returns the context key. |
protected com.bea.netuix.nf.UIControl |
getControl()
Returns the control associated with this context. |
protected static String |
getRequestKey(Class type)
Returns a key for given control context. |
String |
getUniqueId()
Returns a unique ID for this context. |
static void |
removeContextFromRequest(ControlContext context,
HttpServletRequest request)
Removes the given ControlContext from the given HTTP request. |
static void |
setContextInRequest(ControlContext context,
HttpServletRequest request)
Sets the given ControlContext in the given HTTP request. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static Debug debug
Constructor Detail |
protected ControlContext(com.bea.netuix.nf.UIControl control)
Creates a ControlContext
instance.
control
- controlMethod Detail |
protected com.bea.netuix.nf.UIControl getControl()
Returns the control associated with this context.
public String getUniqueId()
Returns a unique ID for this context.
Note that the unique ID may change across requests.
public static void setContextInRequest(ControlContext context, HttpServletRequest request)
Sets the given ControlContext
in the given HTTP request.
context
- contextrequest
- HTTP requestpublic static void removeContextFromRequest(ControlContext context, HttpServletRequest request)
Removes the given ControlContext
from the given HTTP request.
context
- contextrequest
- HTTP requestpublic static ControlContext getContextFromRequest(Class type, HttpServletRequest request)
Returns ControlContext
for the given HTTP request.
type
- type of control contextrequest
- HTTP request
protected static String getRequestKey(Class type)
Returns a key for given control context.
type
- type of control context
protected String getContextKey()
Returns the context key. Subclasses may override this.
|
© 2003 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |