|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.dialog.DialogContext
Base Class for all dialog context classes.
Field Summary | |
private java.util.HashMap |
attributes
The registered attributes. |
private java.lang.String |
lastAction
The action to return to |
Constructor Summary | |
DialogContext()
|
Method Summary | |
void |
clearAttributes()
Clears all known names/values. |
protected static DialogContext |
get(javax.servlet.http.HttpServletRequest request,
boolean create,
java.lang.String name,
java.lang.Class ctxClass)
Returns a Dialog Context |
protected static DialogContext |
get(javax.servlet.http.HttpSession session,
boolean create,
java.lang.String name,
java.lang.Class ctxClass)
Identifys the specified dialog context from the users session. |
protected static DialogContext |
get(javax.servlet.http.HttpSession session,
java.lang.String name,
java.lang.Class ctxClass)
Identifys or creates a new dialog context from the users session. |
protected static DialogContext |
get(RequestContext ctx,
boolean create,
java.lang.String name,
java.lang.Class ctxClass)
Returns a Dialog Context |
java.lang.Object |
getAttribute(java.lang.String attributeName)
Retrieve the value associated with the specified name. |
int |
getAttributeCount()
|
java.util.Set |
getAttributeNames()
|
private static java.util.Hashtable |
getContextTable(javax.servlet.http.HttpSession session)
Returns a collection with the active Dialog Contexts |
java.lang.String |
getLastAction()
Gets the lastAction |
static void |
remove(RequestContext ctx,
java.lang.String name)
Removes a Context from the memory |
java.lang.Object |
removeAttribute(java.lang.String attributeName)
Remove the value associated with the specified name and return it. |
void |
setAttribute(java.lang.String attributeName,
java.lang.Object attributeValue)
Associate a value with the specified name which will remain available until this workflow terminates or it is removed using the removeAttribute() method. |
void |
setLastAction(java.lang.String lastAction)
Sets the lastAction |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.lang.String lastAction
private java.util.HashMap attributes
Constructor Detail |
public DialogContext()
Method Detail |
private static java.util.Hashtable getContextTable(javax.servlet.http.HttpSession session)
session
- HttpSession
protected static DialogContext get(javax.servlet.http.HttpSession session, java.lang.String name, java.lang.Class ctxClass)
session
- HttpSessionname
- NamectxClass
- Context Class
protected static DialogContext get(javax.servlet.http.HttpSession session, boolean create, java.lang.String name, java.lang.Class ctxClass)
session
- HttpSessioncreate
- Zeigt an, ob der Dialogkontext neu erzeugt werden sollname
- NamectxClass
- Context Class
protected static DialogContext get(RequestContext ctx, boolean create, java.lang.String name, java.lang.Class ctxClass)
ctx
- ActionContextcreate
- Zeigt an, ob der Dialogkontext neu erzeugt werden sollname
- NamectxClass
- Context Class
protected static DialogContext get(javax.servlet.http.HttpServletRequest request, boolean create, java.lang.String name, java.lang.Class ctxClass)
request
- HttpServletRequestcreate
- Zeigt an, ob der Dialogkontext neu erzeugt werden sollname
- NamectxClass
- Context Class
public static void remove(RequestContext ctx, java.lang.String name)
ctx
- ActionContextname
- Namepublic java.util.Set getAttributeNames()
public int getAttributeCount()
public java.lang.Object getAttribute(java.lang.String attributeName)
attributeName
- The name associated with the value sought.
public java.lang.Object removeAttribute(java.lang.String attributeName)
attributeName
- The name associated with the value sought.
public void setAttribute(java.lang.String attributeName, java.lang.Object attributeValue) throws java.lang.IllegalArgumentException
attributeName
- The name associated with the value to be stored.attributeValue
- The value to be associated with the name and stored. If an
attribute is already stored under the specified name for this
workflow, it is replaced by this one.
java.lang.IllegalArgumentException
- If the attribute name is null.public void clearAttributes()
public java.lang.String getLastAction()
public void setLastAction(java.lang.String lastAction)
lastAction
- The lastAction to set
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |