Class FirewallComponent
java.lang.Object
com.aoapps.servlet.firewall.pathspace.FirewallComponent
A
FirewallComponent occupies one or more prefixes in the
servlet path space. It also has an associated list of per-component
rules. These rules are called after global rules for requests that
match the prefixes.
See AO Servlet Firewall Filter. TODO: Either move this page from semanticcms-core-controller, or link to it from here.
-
Method Summary
Modifier and TypeMethodDescriptionvoidInserts rules into the end of this component.voidInserts rules into the end of this component.Gets an unmodifiable set of prefixes associated with this component.getRules()Gets an unmodifiable copy of the rules applied to this component.Gets an unmodifiable iterator to the rules.static FirewallComponentnewInstance(Prefix[] prefixes, Rule... rules) Creates a new firewall component.static FirewallComponentnewInstance(Prefix[] prefixes, Iterable<? extends Rule> rules) Creates a new firewall component.static FirewallComponentnewInstance(Prefix prefix, Rule... rules) Creates a new firewall component.static FirewallComponentnewInstance(Prefix prefix, Iterable<? extends Rule> rules) Creates a new firewall component.static FirewallComponentnewInstance(Iterable<? extends Prefix> prefixes, Rule... rules) Creates a new firewall component.static FirewallComponentnewInstance(Iterable<? extends Prefix> prefixes, Iterable<? extends Rule> rules) Creates a new firewall component.voidInserts rules into the beginning of this component.voidInserts rules into the beginning of this component.
-
Method Details
-
newInstance
public static FirewallComponent newInstance(Iterable<? extends Prefix> prefixes, Iterable<? extends Rule> rules) Creates a new firewall component. -
newInstance
Creates a new firewall component. -
newInstance
Creates a new firewall component. -
newInstance
Creates a new firewall component. -
newInstance
Creates a new firewall component. -
newInstance
Creates a new firewall component. -
getPrefixes
Gets an unmodifiable set of prefixes associated with this component. -
getRules
Gets an unmodifiable copy of the rules applied to this component. -
getRulesIterable
Gets an unmodifiable iterator to the rules.Implementation Note:
Is unmodifiable due to being implemented asCopyOnWriteArrayList.iterator(). -
prepend
Inserts rules into the beginning of this component. -
prepend
Inserts rules into the beginning of this component. -
append
Inserts rules into the end of this component. -
append
Inserts rules into the end of this component.
-
