public final class AttributesContext extends AbstractContext
AttributesContext is a mechanism for transferring transient state between components when processing a
single request. For example, a filter may store information about the end-user in the AttributeContext which
can then be accessed in subsequent filters and handlers in order to perform access control decisions, routing
decisions, etc.
The AttributesContext has the same life-cycle as the request with which it is associated. Specifically, any
attributes stored when processing one request will not be accessible when processing a subsequent request, even if it
is from the same logical client.
Use a SessionContext for maintaining state between successive requests
from the same logical client.
data| Constructor and Description |
|---|
AttributesContext(Context parent)
Constructs a new
AttributesContext. |
AttributesContext(JsonValue savedContext,
ClassLoader classLoader)
Restore from JSON representation.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
getAttributes()
Returns the attributes associated with the current request.
|
asContext, containsContext, containsContext, getContext, getContextName, getId, getParent, isRootContext, toJsonValue, toStringpublic AttributesContext(Context parent)
AttributesContext.parent - The parent Context.public AttributesContext(JsonValue savedContext, ClassLoader classLoader)
savedContext - The JSON representation from which this context's attributes should be parsed.classLoader - The ClassLoader which can properly resolve the persisted class-name.Copyright © 2025 Open Identity Platform Community. All rights reserved.