Package com.aoapps.web.resources.servlet
Class RegistryEE.Page
java.lang.Object
com.aoapps.web.resources.servlet.RegistryEE.Page
- Enclosing class:
RegistryEE
Page-scope web resource registries are not always
available. Their availability depends on the registry having been set
by the application or framework.
We have integrated this into our frameworks and tools, and this should
be easily added to additional frameworks. In a framework where the
request and page are the same, it would be sufficient to unconditionally
add a page-scope registry via a ServletRequestListener
.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ScopeEE.Request.Attribute
<Registry> The name of the request-scope attribute that contains the current page context. -
Method Summary
Modifier and TypeMethodDescriptionstatic Registry
get
(ServletRequest request) Gets the page-scope web resource registry for the given servlet request.static void
set
(ServletRequest request, Registry pageRegistry) Sets the page-scope web resource registry in the given servlet request.
-
Field Details
-
REQUEST_ATTRIBUTE
The name of the request-scope attribute that contains the current page context.
-
-
Method Details
-
get
Gets the page-scope web resource registry for the given servlet request.- Returns:
- The registry or
null
of there is not any current page-scope registry.
-
set
Sets the page-scope web resource registry in the given servlet request.
-