com.jpragma.snmp.types
Class GetResponsePDU

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.GetResponsePDU

public class GetResponsePDU
extends PDU

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

Author:
Isaac Levin

Field Summary
static byte TAG_NUMBER
           
 
Constructor Summary
GetResponsePDU(BerTlv tlv)
           
GetResponsePDU(long requestId, int errorStatus, long errorIndex, VarBindList varBindList)
           
GetResponsePDU(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

GetResponsePDU

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

GetResponsePDU

public GetResponsePDU(long requestId,
                      VarBindList varBindList)

GetResponsePDU

public GetResponsePDU(BerTlv tlv)
Method Detail

toBerTlv

public BerTlv toBerTlv()
Overrides:
toBerTlv in class AsnSequence