- java.lang.Object
-
- org.snmp4j.transport.TransportMappings
-
public class TransportMappings extends java.lang.ObjectTheTransportMappingsfactory can be used to create a transport mapping for an address class.- Since:
- 1.1
- Version:
- 2.4.1
- Author:
- Frank Fock
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringTRANSPORT_MAPPINGS
-
Constructor Summary
Constructors Modifier Constructor Description protectedTransportMappings()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <A extends Address>
TransportMapping<A>createTransportMapping(A transportAddress)Returns aTransportMappinginstance that is initialized with the supplied transport address.static TransportMappingsgetInstance()Returns theTransportMappingssingleton.protected voidregisterTransportMappings()
-
-
-
Field Detail
-
TRANSPORT_MAPPINGS
public static final java.lang.String TRANSPORT_MAPPINGS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static TransportMappings getInstance()
Returns theTransportMappingssingleton.- Returns:
- the
TransportMappingsinstance.
-
createTransportMapping
public <A extends Address> TransportMapping<A> createTransportMapping(A transportAddress)
Returns aTransportMappinginstance that is initialized with the supplied transport address. If no such mapping exists,nullis returned. To register third party transport mappings, please set the system propertyTRANSPORT_MAPPINGSto a transport mappings registration file, before calling this method for the first time.- Type Parameters:
A- anAddressclass that is the super class for the addresses supported by this transport mapping.- Parameters:
transportAddress- anAddressinstance that the transport mapping to lookup has to support.- Returns:
- a
TransportMappingthat supports the specifiedtransportAddressornullif such a mapping cannot be found.
-
registerTransportMappings
protected void registerTransportMappings()
-
-