- java.lang.Object
-
- org.snmp4j.transport.TransportMappings
-
public class TransportMappings extends java.lang.Object
TheTransportMappings
factory 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.String
TRANSPORT_MAPPINGS
-
Constructor Summary
Constructors Modifier Constructor Description protected
TransportMappings()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TransportMapping<? extends Address>
createTransportMapping(Address transportAddress)
Returns aTransportMapping
instance that is initialized with the supplied transport address.static TransportMappings
getInstance()
Returns theTransportMappings
singleton.protected void
registerTransportMappings()
-
-
-
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 theTransportMappings
singleton.- Returns:
- the
TransportMappings
instance.
-
createTransportMapping
public TransportMapping<? extends Address> createTransportMapping(Address transportAddress)
Returns aTransportMapping
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 propertyTRANSPORT_MAPPINGS
to a transport mappings registration file, before calling this method for the first time.- Parameters:
transportAddress
- anAddress
instance that the transport mapping to lookup has to support.- Returns:
- a
TransportMapping
that supports the specifiedtransportAddress
ornull
if such a mapping cannot be found.
-
registerTransportMappings
protected void registerTransportMappings()
-
-