public class TrapPduv2 extends Pdu
See SNMPv2-PDU;
The variable bindings list contains the following pairs of object
names and values:
For SNMPv3: The sender of a trap PDU acts as the authoritative engine.
TrapPduv1
added, answered, context, encodedPacket, errind, errstat, msg_type, reqVarbinds, respVarbinds, snmpv3MsgId
Constructor and Description |
---|
TrapPduv2(SnmpContextBasisFace con)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
isExpectingResponse()
Returns that this type of PDU is not expecting a response.
|
protected void |
new_value(int n,
varbind res)
Has no meaning, since there is not response.
|
protected void |
tell_them()
Has no meaning, since there is not response.
|
java.lang.String |
toString()
Returns the string representation of this object.
|
addOid, addOid, addOid, addOid, addOid, addToTrans, getContext, getErrorIndex, getErrorStatus, getErrorStatusString, getMsgType, getReqId, getRequestVarbinds, getResponseVarbinds, getRetryIntervals, isTimedOut, notifyObservers, printVars, send, send, send, sendme, setErrorIndex, setErrorStatus, setErrorStatus, setMsgType, setRetryIntervals, toString, waitForSelf
public TrapPduv2(SnmpContextBasisFace con)
con
- The context (v2c or v3) of the PDUjava.lang.IllegalArgumentException
- if the context version is
SNMPv1public java.lang.String toString()
protected void new_value(int n, varbind res)
protected void tell_them()
protected boolean isExpectingResponse()
isExpectingResponse
in class Pdu