org.snmp4j.util
Interface PDUFactory

All Known Implementing Classes:
DefaultPDUFactory, SnmpConfigurator.InnerPDUFactory, SnmpRequest

public interface PDUFactory

PDUFactory defines the interface for PDU factories.

Since:
1.0.2
Version:
1.0.2
Author:
Frank Fock

Method Summary
 PDU createPDU(Target target)
          Create a PDU instance for the supplied target.
 

Method Detail

createPDU

PDU createPDU(Target target)
Create a PDU instance for the supplied target. The created PDU has to be compliant to the SNMP version defined by the supplied target. For example, a SNMPv3 target requires a ScopedPDU instance.

Parameters:
target - the Target where the PDU to be created will be sent.
Returns:
PDU a PDU instance that is compatible with the supplied target.

Copyright 2005-2010 Frank Fock (SNMP4J.org)

Copyright © 2011 SNMP4J.org. All Rights Reserved.