public abstract class PduValue extends 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 and Description |
---|
PduValue() |
PduValue(IntegerValue requestId,
IntegerValue error,
IntegerValue errorIndex,
VarBindListValue varBindList) |
PduValue(int requestId,
int error,
int errorIndex) |
Modifier and Type | Method and Description |
---|---|
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) |
public PduValue()
public PduValue(int requestId, int error, int errorIndex)
public PduValue(IntegerValue requestId, IntegerValue error, IntegerValue errorIndex, VarBindListValue varBindList)
public void setError(int error)
public void setError(IntegerValue error)
public IntegerValue getError()
public void setErrorIndex(int errorIndex)
public void setErrorIndex(IntegerValue errorIndex)
public IntegerValue getErrorIndex()
public void setRequestId(int id)
public void setRequestId(IntegerValue id)
public IntegerValue getRequestId()
public void addVarBind(VarBindValue obj)
public void addVarBindList(VarBindListValue list)
public VarBindListValue getVarBindList()
public static PduValue create(int type)
public static PduValue create(int type, IntegerValue requestId, IntegerValue error, IntegerValue errorIndex, VarBindListValue varBindList)