|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.adventnet.snmp.snmp2.SnmpMessage
This class encapsulates a v1 or v2c Snmp Message. when a SnmpPDU is instantiated, it instantiates the appropriate message object along with it. Applications must not instantiate SnmpMessage objects and should always use SnmpPDU. An instance of this is created everytime when an SnmpPDU is instantiated. It provides default authentication routines.
Constructor Summary | |
SnmpMessage(byte[] message)
Constructs an SnmpMessage initialized with SNMP packet message byte array data. |
Method Summary | |
SnmpPDU |
getPDU()
Returns the SnmpPDU instance associated with this message. |
void |
setMsgVersion(int v)
Sets snmp Version number in PDU |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SnmpMessage(byte[] message) throws SnmpException
SnmpException
- is thrown whenever an error occurs.Method Detail |
public void setMsgVersion(int v)
public SnmpPDU getPDU()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |