Class FirewallPathSpace
java.lang.Object
com.aoapps.servlet.firewall.pathspace.FirewallPathSpace
Manages the allocation of the servlet
path space
to registered
components
, creating per-module sets of firewall rules.
TODO: Should this be "ao-servlet-firewall-components"?
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Initializes the firewallPathSpace
during application start-up. -
Method Summary
Modifier and TypeMethodDescriptionadd
(FirewallComponent component) Registers a new component.add
(FirewallComponent... components) Registers any number of new components.Finds the component registered at the given path.static FirewallPathSpace
getInstance
(ServletContext servletContext) Gets theFirewallPathSpace
for the givenServletContext
, creating a new instance if not yet present.
-
Method Details
-
getInstance
Gets theFirewallPathSpace
for the givenServletContext
, creating a new instance if not yet present. -
add
Registers a new component.- Throws:
PrefixConflictException
- If the prefix conflicts with an existing entry. TODO: At this time this means the component could be partially registered when it has multiple paths.- See Also:
-
add
Registers any number of new components.- Throws:
PrefixConflictException
- If the prefix conflicts with an existing entry. TODO: At this time this means the components could be partially registered when it has multiple paths.- See Also:
-
get
Finds the component registered at the given path.- See Also:
-