snmp
Class SNMPVariablePair

java.lang.Object
  |
  +--snmp.SNMPObject
        |
        +--snmp.SNMPSequence
              |
              +--snmp.SNMPVariablePair

public class SNMPVariablePair
extends SNMPSequence

The SNMPVariablePair class implements the VarBind specification detailed below from RFC 1157. It is a specialization of SNMPSequence, defining a 2-element sequence containing a single (object identifier, value) pair. Note that the values are themselves SNMPObjects. -- variable bindings VarBind ::= SEQUENCE { name ObjectName, value ObjectSyntax }


Fields inherited from class snmp.SNMPSequence
sequence, type
 
Constructor Summary
SNMPVariablePair(SNMPObjectIdentifier objectID, SNMPObject value)
          Create a new variable pair having the supplied object identifier and vale.
 
Methods inherited from class snmp.SNMPSequence
addSNMPObject, extractFromBEREncoding, getBEREncoding, getSNMPObjectAt, getValue, setValue, size, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SNMPVariablePair

public SNMPVariablePair(SNMPObjectIdentifier objectID,
                        SNMPObject value)
                 throws SNMPBadValueException
Create a new variable pair having the supplied object identifier and vale.