1 22 23 package org.snmp4j.agent.agentx; 24 25 import java.nio.ByteBuffer ; 26 import java.io.IOException ; 27 28 public class AgentXUndoSetPDU extends AgentXPDU { 29 30 public AgentXUndoSetPDU() { 31 super(AGENTX_UNDOSET_PDU); 32 } 33 34 public AgentXUndoSetPDU(AgentXMessageHeader header) { 35 super(header); 36 if (header.getType() != AGENTX_UNDOSET_PDU) { 37 throw new IllegalArgumentException (); 38 } 39 } 40 41 protected void encodePayload(ByteBuffer buf) { 42 } 43 44 public int getPayloadLength() { 45 return 0; 46 } 47 48 public void decodePayload(ByteBuffer buf, int length) throws IOException { 49 } 50 51 protected void beforeEncode() { 52 } 53 54 } 55 | Popular Tags |