|
MySnmpCrawler API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--snmp.message.SnmpMessage
This class represents the top-level SNMP message. It encapsulates the SnmpMessageHeader and SnmpPdu. The SnmpMessageHeader class provides the header information. The SnmpPdu provides the protocol data unit(s).
| Field Summary | |
static org.opennms.protocols.snmp.asn1.BerEncoder |
encoder
|
private SnmpMessageHeader |
header
|
private SnmpPdu |
pdu
|
| Constructor Summary | |
SnmpMessage(java.net.DatagramPacket packet)
Constructs the SnmpMessage object with the received SNMP datagram packet. |
|
| Method Summary | |
void |
decodeMessage(java.net.DatagramPacket packet)
Decodes the datagram packet and creates the SnmpMessageHeader and SnmpPdu objects. |
byte[] |
encodeMessage()
Encodes the encapsulated SnmpMessageHeader and SnmpPdu objects. |
SnmpMessageHeader |
getSnmpMessageHeader()
Gets the encapsulated SnmpMessageHeader object. |
SnmpPdu |
getSnmpPdu()
Gets the encapsulated SnmpPdu object. |
java.lang.String |
toString()
Gets the string representation of the SnmpMessage object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final org.opennms.protocols.snmp.asn1.BerEncoder encoder
private SnmpMessageHeader header
private SnmpPdu pdu
| Constructor Detail |
public SnmpMessage(java.net.DatagramPacket packet)
throws java.io.IOException,
org.opennms.protocols.snmp.SnmpPduEncodingException,
org.opennms.protocols.snmp.asn1.AsnDecodingException
packet - The received SNMP datagram packet.| Method Detail |
public void decodeMessage(java.net.DatagramPacket packet)
throws org.opennms.protocols.snmp.SnmpPduEncodingException,
org.opennms.protocols.snmp.asn1.AsnDecodingException
org.opennms.protocols.snmp.SnmpPduEncodingException
org.opennms.protocols.snmp.asn1.AsnDecodingException
public byte[] encodeMessage()
throws org.opennms.protocols.snmp.SnmpPduEncodingException,
org.opennms.protocols.snmp.asn1.AsnEncodingException
org.opennms.protocols.snmp.SnmpPduEncodingException
org.opennms.protocols.snmp.asn1.AsnEncodingExceptionpublic SnmpMessageHeader getSnmpMessageHeader()
public SnmpPdu getSnmpPdu()
public java.lang.String toString()
toString in class java.lang.Object
|
MySnmpCrawler API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||