Module org.snmp4j

Class TransportMappings


  • public class TransportMappings
    extends java.lang.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 Detail

      • TRANSPORT_MAPPINGS

        public static final java.lang.String TRANSPORT_MAPPINGS
        See Also:
        Constant Field Values
    • Constructor Detail

      • TransportMappings

        protected TransportMappings()
    • Method Detail

      • getInstance

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

        public <A extends AddressTransportMapping<A> createTransportMapping​(A 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.
        Type Parameters:
        A - an Address class that is the super class for the addresses supported by this transport mapping.
        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()