kaos.policy.enforcement.filter
Class DomainNameFilter
java.lang.Object
kaos.policy.enforcement.filter.PermissionFilter
kaos.policy.enforcement.filter.DomainNameFilter
public class DomainNameFilter
- extends PermissionFilter
DomainNameFilter
Requires:
Modifications:
- Sept '00 - For new high-level policies
- See Also:
- "KAoS Agent Programmer's Guide"
$Revision: 1.7 $
Constructor Summary |
DomainNameFilter(java.lang.String domainNamesStr,
boolean complementOf)
Constructor. |
Method Summary |
java.util.Vector |
getFilterDomainNames()
|
boolean |
messagePasses(Msg testMsg)
This is the primary purpose of this class:
given the current value of the filter currentFilterConditions_,
does the given Msg 'pass', or not?
This class tests for the equality of a top-level symbol FILTER_SYMBOL_NAME
in both the filter object and the test message. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FILTER_SYMBOL_NAME
public static final java.lang.String FILTER_SYMBOL_NAME
- See Also:
- Constant Field Values
TEST_SYMBOL_NAME
public static final java.lang.String TEST_SYMBOL_NAME
- See Also:
- Constant Field Values
DomainNameFilter
public DomainNameFilter(java.lang.String domainNamesStr,
boolean complementOf)
- Constructor.
Set the initial filter conditions.
messagePasses
public boolean messagePasses(Msg testMsg)
- This is the primary purpose of this class:
given the current value of the filter currentFilterConditions_,
does the given Msg 'pass', or not?
This class tests for the equality of a top-level symbol FILTER_SYMBOL_NAME
in both the filter object and the test message.
If one of the domain names specified in the test message is equal to the filterName, the message is blocked.
- Specified by:
messagePasses
in class PermissionFilter
getFilterDomainNames
public java.util.Vector getFilterDomainNames()