com.caucho.server.snmp.types
Class PduValue
java.lang.Object
com.caucho.server.snmp.types.SnmpValue
com.caucho.server.snmp.types.PduValue
- Direct Known Subclasses:
- GetResponsePduValue, RequestPduValue, TrapPduValue
public abstract class PduValue
- extends SnmpValue
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PduValue
public PduValue()
PduValue
public PduValue(int requestId,
int error,
int errorIndex)
PduValue
public PduValue(IntegerValue requestId,
IntegerValue error,
IntegerValue errorIndex,
VarBindListValue varBindList)
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)