com.caucho.server.snmp.types
Class PduValue

java.lang.Object
  extended by com.caucho.server.snmp.types.SnmpValue
      extended by com.caucho.server.snmp.types.PduValue
Direct Known Subclasses:
GetResponsePduValue, RequestPduValue, TrapPduValue

public abstract class PduValue
extends SnmpValue


Field Summary
 
Fields inherited from class com.caucho.server.snmp.types.SnmpValue
COUNTER, EOC, GAUGE, GET_NEXT_REQUEST_PDU, GET_REQUEST_PDU, GET_RESPONSE_PDU, INTEGER, IP_ADDRESS, NULL, OBJECT_IDENTIFIER, OCTET_STRING, OPAQUE, SEQUENCE, SET_REQUEST_PDU, TIME_TICKS, TRAP_PDU
 
Constructor Summary
PduValue()
           
PduValue(IntegerValue requestId, IntegerValue error, IntegerValue errorIndex, VarBindListValue varBindList)
           
PduValue(int requestId, int error, int errorIndex)
           
 
Method Summary
 void addVarBind(VarBindValue obj)
           
 void addVarBindList(VarBindListValue list)
           
static PduValue create(int type)
           
static PduValue create(int type, IntegerValue requestId, IntegerValue error, IntegerValue errorIndex, VarBindListValue varBindList)
           
 IntegerValue getError()
           
 IntegerValue getErrorIndex()
           
 IntegerValue getRequestId()
           
 VarBindListValue getVarBindList()
           
 void setError(int error)
           
 void setError(IntegerValue error)
           
 void setErrorIndex(int errorIndex)
           
 void setErrorIndex(IntegerValue errorIndex)
           
 void setRequestId(int id)
           
 void setRequestId(IntegerValue id)
           
 void toAsn1(java.lang.StringBuilder sb)
           
 
Methods inherited from class com.caucho.server.snmp.types.SnmpValue
create, create, create, getLong, getString, getType, header, toAsn1, typeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PduValue

public PduValue()

PduValue

public PduValue(int requestId,
                int error,
                int errorIndex)

PduValue

public PduValue(IntegerValue requestId,
                IntegerValue error,
                IntegerValue errorIndex,
                VarBindListValue varBindList)
Method Detail

toAsn1

public void toAsn1(java.lang.StringBuilder sb)
Specified by:
toAsn1 in class SnmpValue

setError

public void setError(int error)

setError

public void setError(IntegerValue error)

getError

public IntegerValue getError()

setErrorIndex

public void setErrorIndex(int errorIndex)

setErrorIndex

public void setErrorIndex(IntegerValue errorIndex)

getErrorIndex

public IntegerValue getErrorIndex()

setRequestId

public void setRequestId(int id)

setRequestId

public void setRequestId(IntegerValue id)

getRequestId

public IntegerValue getRequestId()

addVarBind

public void addVarBind(VarBindValue obj)

addVarBindList

public void addVarBindList(VarBindListValue list)

getVarBindList

public VarBindListValue getVarBindList()

create

public static PduValue create(int type)

create

public static PduValue create(int type,
                              IntegerValue requestId,
                              IntegerValue error,
                              IntegerValue errorIndex,
                              VarBindListValue varBindList)