public class SnmpMessageValue 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 |
---|
SnmpMessageValue(IntegerValue version,
OctetStringValue community,
PduValue pdu) |
SnmpMessageValue(int version,
java.lang.String community,
PduValue pdu) |
Modifier and Type | Method and Description |
---|---|
void |
addVarBind(VarBindValue obj) |
void |
addVarBindList(VarBindListValue list) |
OctetStringValue |
getCommunityString() |
IntegerValue |
getError() |
IntegerValue |
getErrorIndex() |
PduValue |
getPdu() |
IntegerValue |
getRequestId() |
int |
getType() |
VarBindListValue |
getVarBindList() |
IntegerValue |
getVersion() |
void |
setCommunityString(OctetStringValue communityString) |
void |
setCommunityString(java.lang.String communityString) |
void |
setError(int error) |
void |
setError(IntegerValue error) |
void |
setErrorIndex(int errorIndex) |
void |
setErrorIndex(IntegerValue errorIndex) |
void |
setPdu(PduValue pdu) |
void |
setRequestId(int id) |
void |
setRequestId(IntegerValue id) |
void |
setVersion(int version) |
void |
setVersion(IntegerValue version) |
void |
toAsn1(java.lang.StringBuilder sb) |
java.lang.String |
toString() |
public SnmpMessageValue(int version, java.lang.String community, PduValue pdu)
public SnmpMessageValue(IntegerValue version, OctetStringValue community, PduValue pdu)
public IntegerValue getVersion()
public void setVersion(int version)
public void setVersion(IntegerValue version)
public OctetStringValue getCommunityString()
public void setCommunityString(java.lang.String communityString)
public void setCommunityString(OctetStringValue communityString)
public PduValue getPdu()
public void setPdu(PduValue pdu)
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 java.lang.String toString()
toString
in class java.lang.Object