Package com.aoapps.servlet.attribute


package com.aoapps.servlet.attribute
Utilities for working with various attribute scopes.

This API has four concepts:

  1. ScopeEE - The most broad concept is scope, including page, request, session, and application. Does not yet have a resolved context or attribute name.
  2. ContextEE - A specifically resolved context, such as JspContext, ServletRequest, HttpSession, and ServletContext. Does not yet have an attribute name.
  3. AttributeEE - An attribute has both context and name and is used for value access.
  4. 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.