com.jpragma.snmp.types
Class GetRequestPDU

java.lang.Object
  extended by com.jpragma.snmp.asn.AsnObject
      extended by com.jpragma.snmp.asn.AsnSequence
          extended by com.jpragma.snmp.types.AbstractPDU
              extended by com.jpragma.snmp.types.PDU
                  extended by com.jpragma.snmp.types.GetRequestPDU

public class GetRequestPDU
extends PDU

 RFC 1157.
 
 The form of the GetRequest-PDU is:
        GetRequest-PDU ::=
                [0]
                        IMPLICIT SEQUENCE {
                                request-id
                                        RequestID,
                                error-status -- always 0
                                        ErrorStatus,
                                error-index -- always 0
                                        ErrorIndex,
                                variable-bindings
                                        VarBindList
                        }

Author:
Isaac Levin

Field Summary
static byte TAG_NUMBER
           
 
Constructor Summary
GetRequestPDU(BerTlv tlv)
           
GetRequestPDU(long requestId, int errorStatus, long errorIndex, VarBindList varBindList)
           
GetRequestPDU(long requestId, VarBindList varBindList)
           
 
Method Summary
 BerTlv toBerTlv()
           
 
Methods inherited from class com.jpragma.snmp.types.PDU
getErrorIndex, getErrorStatus, getRequestId, getVarBindList, setValue, toString
 
Methods inherited from class com.jpragma.snmp.asn.AsnSequence
add, add, get, getValue, setValue, toBerTlv
 
Methods inherited from class com.jpragma.snmp.asn.AsnObject
equals, getInstance
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TAG_NUMBER

public static final byte TAG_NUMBER
See Also:
Constant Field Values
Constructor Detail

GetRequestPDU

public GetRequestPDU(long requestId,
                     int errorStatus,
                     long errorIndex,
                     VarBindList varBindList)

GetRequestPDU

public GetRequestPDU(long requestId,
                     VarBindList varBindList)

GetRequestPDU

public GetRequestPDU(BerTlv tlv)
Method Detail

toBerTlv

public BerTlv toBerTlv()
Overrides:
toBerTlv in class AsnSequence