com.adventnet.snmp.snmp2.agent
Class AccessListenerImpl

java.lang.Object
  |
  +--com.adventnet.snmp.snmp2.agent.AccessListenerImpl

public class AccessListenerImpl
extends java.lang.Object
implements AccessListener


Field Summary
(package private)  SnmpAgent agent
           
(package private)  SnmpPDU pdu
           
static Log snmpLog
           
 
Constructor Summary
(package private) AccessListenerImpl()
           
 
Method Summary
 void checkAccess(AgentResource agentSource, SnmpOID oid, SnmpPduRequestEvent p1)
          Method to check whether the Access is allowed for the Specified OID.
static void createLogger()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pdu

SnmpPDU pdu

agent

SnmpAgent agent

snmpLog

public static Log snmpLog
Constructor Detail

AccessListenerImpl

AccessListenerImpl()
Method Detail

checkAccess

public void checkAccess(AgentResource agentSource,
                        SnmpOID oid,
                        SnmpPduRequestEvent p1)
                 throws AgentSnmpException
Method to check whether the Access is allowed for the Specified OID. This method will be called for handling the View Based Access control of the Agent.
Specified by:
checkAccess in interface AccessListener
Parameters:
agentSource - the AgentResource created the Request.
oid - the SnmpOID for which the Request is received.
Throws:
AgentSnmpException - if the request is not Accessible.

createLogger

public static void createLogger()