public interface UWTContext
UWTContextFactory ctxFactory = UESComponentFactory.getComponent(UWTContextFactory.class); UWTContext ctx = ctxFactory.getCurrentContext();
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SCOPE_HTTP_REQUEST
The scope with time validity of a HTTP request.
|
static java.lang.String |
SCOPE_HTTP_SESSION
The scope with time validity of a HTTP session.
|
static java.lang.String |
SCOPE_PERSIST
The scope with unlimited time validity (data doesn't expire in this scope).
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getAttribute(java.lang.String aCode,
Returns the attribute with given code.
|
<T> T |
getAttribute(UWTContextAttributeKey aKey,
Returns the attribute with given key.
|
javax.servlet.http.HttpServletRequest |
getRequest()
Returns the request associated with this context.
|
javax.servlet.http.HttpServletResponse |
getResponse()
Returns the response associated with this context.
|
UCDescriptor |
getUCDescriptor()
Returns the descriptor of the currently running use case.
|
void |
setAttribute(java.lang.String aCode,
Sets the attribute with given code to contain the value aValue into given
scope.
|
void |
setAttribute(UWTContextAttributeKey aKey,
Sets the attribute with given code to contain the value aValue into given
scope.
|
T - The type of the value.aCode - The code identifying an attribute as per visual component
instance.aClass - The class of the value.aCode - The code identifying an attribute as per visual component
instance.aValue - The value to set.aScope - The scope to set the value to. Usually one of
UWTContext.SCOPE_* constants.T - The type of the value.aKey - The attribute key.aClass - The class of the value.aKey - The key of the attribute.aValue - The value to set.aScope - The scope to set the value to. Usually one of
UWTContext.SCOPE_* constants.