Class TransportMappings

java.lang.Object
org.snmp4j.transport.TransportMappings

public class TransportMappings extends Object
The TransportMappings factory can be used to create a transport mapping for an address class.
Since:
1.1
Version:
2.4.1
Author:
Frank Fock
  • Field Details

  • Constructor Details

    • TransportMappings

      protected TransportMappings()
  • Method Details

    • getInstance

      public static TransportMappings getInstance()
      Returns the TransportMappings singleton.
      Returns:
      the TransportMappings instance.
    • createTransportMapping

      public TransportMapping<? extends Address> createTransportMapping(Address transportAddress)
      Returns a TransportMapping instance that is initialized with the supplied transport address. If no such mapping exists, null is returned. To register third party transport mappings, please set the system property TRANSPORT_MAPPINGS to a transport mappings registration file, before calling this method for the first time.
      Parameters:
      transportAddress - an Address instance that the transport mapping to lookup has to support.
      Returns:
      a TransportMapping that supports the specified transportAddress or null if such a mapping cannot be found.
    • registerTransportMappings

      protected void registerTransportMappings()