com.adventnet.aclparser
Class DefaultTrapPolicy

java.lang.Object
  extended by com.adventnet.aclparser.DefaultTrapPolicy
All Implemented Interfaces:
TrapPolicy, java.io.Serializable

public class DefaultTrapPolicy
extends java.lang.Object
implements TrapPolicy

The default Access Policy class which is created by parsing ACL files

See Also:
Serialized Form

Field Summary
(package private)  java.lang.String community
           
(package private)  java.lang.String enterpiseOID
           
(package private)  java.lang.String enterpriseOID
           
(package private)  java.util.Vector managers
           
(package private)  int trapIndex
           
 
Constructor Summary
DefaultTrapPolicy()
           
 
Method Summary
 boolean checkPolicy(int trapIndex, java.lang.String enterpriseOID)
          Check policy method for the traps.
 java.lang.String getCommunity()
          Implementation of TrapPolicy
 java.lang.String getEnterpriseOID()
          Getter for enterpiseOID
(package private)  void getInetAddresses()
           
 java.util.Vector getManagers()
          Implementation of interface TrapPolicy
 int getTrapIndex()
          Gettter for trapIndex
 void setCommunity(java.lang.String community)
          Setter for comunity
 void setEnterpriseOID(java.lang.String val)
          Setter for enterpiseOID
 void setManagers(java.util.Vector val)
          setter for managers
 void setTrapIndex(int trapIndex)
          Settter for trapIndex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

managers

java.util.Vector managers

community

java.lang.String community

enterpriseOID

java.lang.String enterpriseOID

trapIndex

int trapIndex

enterpiseOID

java.lang.String enterpiseOID
Constructor Detail

DefaultTrapPolicy

public DefaultTrapPolicy()
Method Detail

setManagers

public void setManagers(java.util.Vector val)
setter for managers


getInetAddresses

void getInetAddresses()

getManagers

public java.util.Vector getManagers()
Implementation of interface TrapPolicy

Specified by:
getManagers in interface TrapPolicy
Returns:
Vector of managers for this policy

setCommunity

public void setCommunity(java.lang.String community)
Setter for comunity


getCommunity

public java.lang.String getCommunity()
Implementation of TrapPolicy

Specified by:
getCommunity in interface TrapPolicy
Returns:
community of this trap Policy

checkPolicy

public boolean checkPolicy(int trapIndex,
                           java.lang.String enterpriseOID)
Description copied from interface: TrapPolicy
Check policy method for the traps.

Specified by:
checkPolicy in interface TrapPolicy
Parameters:
trapIndex - the trapIndex (could be generic or enterprise specific)
Returns:
true if the trap fits in the scope of this policy

setTrapIndex

public void setTrapIndex(int trapIndex)
Settter for trapIndex


getTrapIndex

public int getTrapIndex()
Gettter for trapIndex


setEnterpriseOID

public void setEnterpriseOID(java.lang.String val)
Setter for enterpiseOID


getEnterpriseOID

public java.lang.String getEnterpriseOID()
Getter for enterpiseOID