Class AgentXRemoveAgentCapsPDU

All Implemented Interfaces:
Serializable

public class AgentXRemoveAgentCapsPDU extends AgentXContextPDU
The AgentXRemoveAgentCapsPDU represents a MIB region which can be an entire MIB or a single object-instance.
See Also:
  • Constructor Details

    • AgentXRemoveAgentCapsPDU

      public AgentXRemoveAgentCapsPDU(org.snmp4j.smi.OctetString context, org.snmp4j.smi.OID id)
      Creates a new AgentXRemoveAgentCapsPDU from context and agent caps OID.
      Parameters:
      context - the SNMPv3 context.
      id - the agent caps OID.
    • AgentXRemoveAgentCapsPDU

      public AgentXRemoveAgentCapsPDU(AgentXMessageHeader header)
      Parameters:
      header - the message header.
  • Method Details

    • decodeAfterContext

      protected void decodeAfterContext(ByteBuffer buf, int length) throws IOException
      Description copied from class: AgentXContextPDU
      Decode this PDU after the end of the encoded context.
      Specified by:
      decodeAfterContext in class AgentXContextPDU
      Parameters:
      buf - the buffer positioned at the end of the encoded context.
      length - the length of the PDU to be decoded.
      Throws:
      IOException - if the buffer contains less data than expected.
    • encodeAfterContext

      protected void encodeAfterContext(ByteBuffer buf)
      Description copied from class: AgentXContextPDU
      Encode this PDU after already encoded context (thus context will not be encoded by this operation).
      Specified by:
      encodeAfterContext in class AgentXContextPDU
      Parameters:
      buf - the target buffer.
    • getAfterContextLength

      protected int getAfterContextLength()
      Description copied from class: AgentXContextPDU
      Gets the encoded length after an already encoded context.
      Specified by:
      getAfterContextLength in class AgentXContextPDU
      Returns:
      the BER encoded length (without context).
    • getId

      public org.snmp4j.smi.OID getId()
      Gets the agent caps OID.
      Returns:
      the agent caps OID.
    • setId

      public void setId(org.snmp4j.smi.OID id)
      Sets the agent caps OID associated with this region entry.
      Parameters:
      id - an agent caps OID.