Module com.aoapps.servlet.util
Package com.aoapps.servlet.attribute
package com.aoapps.servlet.attribute
Utilities for working with various attribute scopes.
This API has four concepts:
ScopeEE
- The most broad concept is scope, including page, request, session, and application. Does not yet have a resolved context or attribute name.ContextEE
- A specifically resolved context, such asJspContext
,ServletRequest
,HttpSession
, andServletContext
. Does not yet have an attribute name.AttributeEE
- An attribute has both context and name and is used for value access.AttributeEE.Name
- A name without any specific scope or context.
Ultimately, the goal is to get to an attribute, which means having both a fully resolved context and a name. The
API supports arriving at an attribute in any order, such as scope → context → name
or
name → context
.
There is also a set of static utility methods, to which the rest of the API ends up calling. For one-off attribute access, these static methods may be more succinct.
- Author:
- AO Industries, Inc.
-
ClassDescriptionAttributeEE<C,
T> An attribute has scope, context, and name and is used for value access.A JSTL attribute name without any specific scope or context.A name without any specific scope or context.Supports attributes in contexts of typesServletContext
,ServletRequest
,HttpSession
, andJspContext
.Supports scope attributes in scopes of contexts typesServletContext
,ServletRequest
,HttpSession
, andJspContext
.ContextEE<C>A specifically resolved context, such asJspContext
,ServletRequest
,HttpSession
, andServletContext
.AttributeEE
: Has application scope and context, still needs name.AttributeEE
: Has page scope and context, still needs name.AttributeEE
: Has request scope and context, still needs name.AttributeEE
: Has session scope and context, still needs name.ScopeEE<C>The most broad concept is scope, including page, request, session, and application.AttributeEE
: Has application scope, still needs context and name.AttributeEE
: Has application scope and name, still needs context.ScopeEE.Attribute<C,T> AttributeEE
: Has scope and name, still needs context.AttributeEE
: Has page scope, still needs context and name.AttributeEE
: Has page scope and name, still needs context.AttributeEE
: Has request scope, still needs context and name.AttributeEE
: Has request scope and name, still needs context.AttributeEE
: Has session scope, still needs context and name.AttributeEE
: Has session scope and name, still needs context.