kaos.policy.enforcement.filter
Class DomainNameFilter

java.lang.Object
  extended by kaos.policy.enforcement.filter.PermissionFilter
      extended by kaos.policy.enforcement.filter.DomainNameFilter

public class DomainNameFilter
extends PermissionFilter

DomainNameFilter Requires:

Modifications:

See Also:
"KAoS Agent Programmer's Guide" $Revision: 1.7 $

Field Summary
static java.lang.String FILTER_SYMBOL_NAME
           
static java.lang.String TEST_SYMBOL_NAME
           
 
Fields inherited from class kaos.policy.enforcement.filter.PermissionFilter
currentFilterConditions_
 
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 kaos.policy.enforcement.filter.PermissionFilter
addFilterConditions, setFilterConditions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

DomainNameFilter

public DomainNameFilter(java.lang.String domainNamesStr,
                        boolean complementOf)
Constructor. Set the initial filter conditions.

Method Detail

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()