|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webify.wsf.engine.context.Context
public abstract class Context
Maintains the state associated with a business activity. Similar to a Web session or transactional context.
Field Summary | |
---|---|
protected boolean |
_reference
|
static java.lang.String |
DEBUG
Boolean property that is used to signal debugging mode. |
static java.lang.String |
PRISM_BEGIN
The context identifer for pass-by-value context headers. |
static java.lang.String |
WARNINGS
String property for specifying warning messages for the activity. |
Constructor Summary | |
---|---|
Context()
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object other)
|
boolean |
getBooleanProperty(java.lang.String propKey)
Get the value for the specified property. |
abstract Context |
getChildContextAt(int index)
Get the context at the specified index. |
abstract int |
getChildContextCount()
Get the number of contexts that are children of this context. |
abstract java.lang.String |
getContextIdentifier()
Gets the unique identifier for the context instance. |
java.lang.Long |
getLongProperty(java.lang.String propKey)
Get the value for the specified property. |
TypedValue |
getObjectAsTypedValue(java.lang.String propKey)
Returns the property specified by propKey as a TypedValue. |
abstract java.lang.Object |
getObjectProperty(java.lang.String propKey)
Get the value for the specified property. |
abstract Context |
getParentContext()
Get's the parent context associated with this context instance. |
abstract java.util.Set |
getPropertyNameSet()
Get the set of properties associated with this context. |
java.lang.String |
getStringProperty(java.lang.String propKey)
Get the value for the specified property. |
abstract long |
getTimeout()
Gets the timeout in milliseconds. |
abstract long |
getTimestamp()
Gets the context creation time. |
int |
hashCode()
|
boolean |
isExpired()
|
boolean |
isReference()
|
void |
setBooleanProperty(java.lang.String propKey,
boolean propValue)
|
abstract void |
setObjectProperty(java.lang.String propKey,
java.lang.Object propValue)
|
void |
setStringProperty(java.lang.String propKey,
java.lang.String propValue)
|
void |
setTypedValueProperty(java.lang.String propKey,
TypedValue typedValue)
Delegates to setObjectProperty(java.lang.String, java.lang.Object) . |
abstract ContextDocument |
toContextDocument()
Convert this context to XML. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PRISM_BEGIN
public static final java.lang.String DEBUG
public static final java.lang.String WARNINGS
protected transient boolean _reference
Constructor Detail |
---|
public Context()
Method Detail |
---|
public abstract java.lang.String getContextIdentifier()
public abstract long getTimestamp()
System.currentTimeMillis()
public abstract long getTimeout()
public abstract Context getParentContext()
public abstract int getChildContextCount()
public abstract Context getChildContextAt(int index)
index
- the index of the child context to be returned
public abstract java.util.Set getPropertyNameSet()
public final boolean getBooleanProperty(java.lang.String propKey)
propKey
- String identifying the property to return value for.
public final java.lang.Long getLongProperty(java.lang.String propKey)
propKey
- String identifying the property to return value for.
public final java.lang.String getStringProperty(java.lang.String propKey)
propKey
- String identifying the property to return value for.
public TypedValue getObjectAsTypedValue(java.lang.String propKey)
propKey
as a TypedValue.
Legacy Engine Context's do not have XSD types other than boolean.
Overriding classes may provide support for other XSD types as needed.
propKey
- non-null key for the desired property
public abstract java.lang.Object getObjectProperty(java.lang.String propKey)
propKey
- String identifying the property to return value for.
public final void setBooleanProperty(java.lang.String propKey, boolean propValue)
public final void setStringProperty(java.lang.String propKey, java.lang.String propValue)
public abstract void setObjectProperty(java.lang.String propKey, java.lang.Object propValue)
public void setTypedValueProperty(java.lang.String propKey, TypedValue typedValue)
setObjectProperty(java.lang.String, java.lang.Object)
. Overriding classes may choose
to handle TypedValue properties in a special manner.
propKey
- non-null property keytypedValue
- non-null TypedValue property valuepublic abstract ContextDocument toContextDocument()
public boolean isReference()
public boolean isExpired()
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |