|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.protocols.snmp.SnmpV2Error
This class provides the base class for the SNMP V2 error class. In SNMPv2 an agent may respond to individual variables with one of three errors: End-of-Mib-View, No-Such-Instance, or No-Such-Object. Each of the error conditions are derived from this base class. By responding to error in this way the agent can still return valid variables while informing the manager of the variables in error. For more information see "SNMP, SNMPv2, SNMPv3, and RMON 1 and 2, 3rd Ed" by William Stallings. (ISBN 0-201-48534-6)
| Constructor Summary | |
SnmpV2Error()
Default constructor. |
|
SnmpV2Error(SnmpV2Error second)
Copy constructor. |
|
| Method Summary | |
abstract java.lang.Object |
clone()
Returns a duplicate of the current object. |
int |
decodeASN(byte[] buf,
int offset,
org.opennms.protocols.snmp.asn1.AsnEncoder encoder)
Decodes the passed buffer and updates the object to match the encoded information. |
abstract SnmpSyntax |
duplicate()
Returns a duplicate of the current object. |
int |
encodeASN(byte[] buf,
int offset,
org.opennms.protocols.snmp.asn1.AsnEncoder encoder)
Encodes the SNMPv2 error into the passed buffer using the encoder object. |
abstract byte |
typeId()
Returns the ASN.1 type identifier for the SNMPv2 error. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SnmpV2Error()
public SnmpV2Error(SnmpV2Error second)
second - The object to copy to self| Method Detail |
public abstract byte typeId()
typeId in interface SnmpSyntax
public int encodeASN(byte[] buf,
int offset,
org.opennms.protocols.snmp.asn1.AsnEncoder encoder)
throws org.opennms.protocols.snmp.asn1.AsnEncodingException
encodeASN in interface SnmpSyntaxbuf - The buffer to store encoded bytesoffset - The start of the encoding locationencoder - The encoding object
org.opennms.protocols.snmp.asn1.AsnEncodingException - Thrown if an encoding error occurs
public int decodeASN(byte[] buf,
int offset,
org.opennms.protocols.snmp.asn1.AsnEncoder encoder)
throws org.opennms.protocols.snmp.asn1.AsnDecodingException
decodeASN in interface SnmpSyntaxbuf - The encoded bufferoffset - The offset of the first byte of encoded dataencoder - The object used to decode the data.
org.opennms.protocols.snmp.asn1.AsnDecodingException - Thrown if an encoding error occurspublic abstract SnmpSyntax duplicate()
duplicate in interface SnmpSyntaxpublic abstract java.lang.Object clone()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||