|
MySnmpCrawler API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--snmp.message.handler.DefaultSnmpRequestHandler
This abstract class provides the implementation to determine the right request handler. It also defines the method to check if there is any error in the PDU based on the specifications in RFC1157.
Field Summary |
Fields inherited from interface snmp.message.handler.SnmpRequestHandler |
GET, GETNEXT, SET |
Constructor Summary | |
protected |
DefaultSnmpRequestHandler()
Default constructor to instantiate the SnmpMessageHandlerImpl object. |
Method Summary | |
protected int |
checkPDU(SnmpPdu snmpPdu)
This method verifies each OID in the PDU to see if it is existed in the MIB database. |
boolean |
isHandler(int type)
This method returns true if it is the right handler to handle the message. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface snmp.message.handler.SnmpMessageHandler |
getHandlerType |
Methods inherited from interface snmp.session.SnmpSessionEventListener |
handleSession |
Constructor Detail |
protected DefaultSnmpRequestHandler()
Method Detail |
public boolean isHandler(int type)
isHandler
in interface SnmpMessageHandler
type
- Type of the operationprotected int checkPDU(SnmpPdu snmpPdu) throws SnmpException
snmpPdu
- The PDU to be checked.
SnmpException
|
MySnmpCrawler API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |