com.caucho.server.snmp.types
Class SnmpMessageValue
java.lang.Object
com.caucho.server.snmp.types.SnmpValue
com.caucho.server.snmp.types.SnmpMessageValue
public class SnmpMessageValue
- 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, wait, wait, wait |
SnmpMessageValue
public SnmpMessageValue(int version,
java.lang.String community,
PduValue pdu)
SnmpMessageValue
public SnmpMessageValue(IntegerValue version,
OctetStringValue community,
PduValue pdu)
getType
public int getType()
- Specified by:
getType
in class SnmpValue
toAsn1
public void toAsn1(java.lang.StringBuilder sb)
- Specified by:
toAsn1
in class SnmpValue
getVersion
public IntegerValue getVersion()
setVersion
public void setVersion(int version)
setVersion
public void setVersion(IntegerValue version)
getCommunityString
public OctetStringValue getCommunityString()
setCommunityString
public void setCommunityString(java.lang.String communityString)
setCommunityString
public void setCommunityString(OctetStringValue communityString)
getPdu
public PduValue getPdu()
setPdu
public void setPdu(PduValue pdu)
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()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object