public abstract class AgentXContextPDU extends AgentXPDU
| Modifier and Type | Field and Description |
|---|---|
protected org.snmp4j.smi.OctetString |
context |
AGENTX_ADDAGENTCAPS_PDU, AGENTX_CLEANUPSET_PDU, AGENTX_CLOSE_PDU, AGENTX_COMMITSET_PDU, AGENTX_GET_PDU, AGENTX_GETBULK_PDU, AGENTX_GETNEXT_PDU, AGENTX_INDEXALLOCATE_PDU, AGENTX_INDEXDEALLOCATE_PDU, AGENTX_NOTIFY_PDU, AGENTX_OPEN_PDU, AGENTX_PING_PDU, AGENTX_REGISTER_PDU, AGENTX_REMOVEAGENTCAPS_PDU, AGENTX_RESPONSE_PDU, AGENTX_TESTSET_PDU, AGENTX_UNDOSET_PDU, AGENTX_UNREGISTER_PDU, byteOrder, flags, packetID, RESERVED, sessionID, transactionID, type, version| Modifier | Constructor and Description |
|---|---|
protected |
AgentXContextPDU(AgentXMessageHeader header) |
protected |
AgentXContextPDU(byte type,
byte flags,
int sessionID,
int transactionID,
int packetID) |
protected |
AgentXContextPDU(byte type,
org.snmp4j.smi.OctetString context) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
beforeEncode()
Initialize flags and other things before a PDU is encoded.
|
protected abstract void |
decodeAfterContext(ByteBuffer buf,
int length) |
void |
decodePayload(ByteBuffer buf,
int length) |
protected abstract void |
encodeAfterContext(ByteBuffer buf) |
void |
encodePayload(ByteBuffer buf) |
protected abstract int |
getAfterContextLength() |
org.snmp4j.smi.OctetString |
getContext() |
int |
getPayloadLength() |
void |
setContext(org.snmp4j.smi.OctetString context) |
protected String |
toStringExtMembers() |
addFlag, decode, encode, getByteOrder, getFlags, getPacketID, getSessionID, getTransactionID, getType, getVersion, isConfirmedPDU, isFlagSet, main, setByteOrder, setFlags, setPacketID, setSessionAttributes, setSessionID, setTransactionID, setType, setVersion, toStringprotected AgentXContextPDU(byte type,
org.snmp4j.smi.OctetString context)
protected AgentXContextPDU(AgentXMessageHeader header)
protected AgentXContextPDU(byte type,
byte flags,
int sessionID,
int transactionID,
int packetID)
protected abstract void decodeAfterContext(ByteBuffer buf, int length) throws IOException
IOExceptionprotected abstract void encodeAfterContext(ByteBuffer buf)
protected abstract int getAfterContextLength()
public final void decodePayload(ByteBuffer buf, int length) throws IOException
decodePayload in class AgentXPDUIOExceptionpublic final void encodePayload(ByteBuffer buf)
encodePayload in class AgentXPDUpublic final int getPayloadLength()
getPayloadLength in class AgentXPDUpublic org.snmp4j.smi.OctetString getContext()
public void setContext(org.snmp4j.smi.OctetString context)
protected String toStringExtMembers()
toStringExtMembers in class AgentXPDUprotected void beforeEncode()
beforeEncode in class AgentXPDUCopyright © 2020 SNMP4J.org. All rights reserved.