| |
|
| java.lang.Object org.snmp4j.util.DefaultPDUFactory
DefaultPDUFactory | public class DefaultPDUFactory implements PDUFactory(Code) | | The DefaultPDUFactory is a default implementation of the
PDUFactory interface. It creates PDUs depending on the
target's message processing model. That is, a
PDUv1 instance is
created for a SNMPv1 target whereas a
ScopedPDU is created
for a SNMPv3 target. In all other cases a
PDU instance is created.
author: Frank Fock version: 1.7.3 since: 1.0.4 |
Method Summary | |
public PDU | createPDU(Target target) Create a PDU instance for the supplied target.
Parameters: target - the Target where the PDU to be created will besent. | public static PDU | createPDU(Target target, int pduType) Create a PDU instance for the supplied target.
Parameters: target - the Target where the PDU to be created will besent. Parameters: pduType - a PDU type as specified by PDU. | public static PDU | createPDU(int targetVersion) Create a PDU instance for the specified SNMP version. | public int | getPduType() | public void | setPduType(int pduType) |
DefaultPDUFactory | public DefaultPDUFactory()(Code) | | Creates a PDU factory for the
PDU.GET PDU type.
|
DefaultPDUFactory | public DefaultPDUFactory(int pduType)(Code) | | Creates a PDU factory for the specified PDU type.
Parameters: pduType - a PDU type as specified by PDU. |
createPDU | public PDU createPDU(Target target)(Code) | | Create a PDU instance for the supplied target.
Parameters: target - the Target where the PDU to be created will besent. PDU a PDU instance that is compatible with the supplied target. |
createPDU | public static PDU createPDU(Target target, int pduType)(Code) | | Create a PDU instance for the supplied target.
Parameters: target - the Target where the PDU to be created will besent. Parameters: pduType - a PDU type as specified by PDU. PDUa PDU instance that is compatible with the supplied target. |
createPDU | public static PDU createPDU(int targetVersion)(Code) | | Create a PDU instance for the specified SNMP version.
Parameters: targetVersion - a SNMP version as defined by SnmpConstants.a PDU instance that is compatible with the supplied target SNMP version. since: 1.7.3 |
getPduType | public int getPduType()(Code) | | |
setPduType | public void setPduType(int pduType)(Code) | | |
|
|
|