Package org.snmp4j.transport
Class TransportMappings
java.lang.Object
org.snmp4j.transport.TransportMappings
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTransportMapping<? extends Address>createTransportMapping(Address transportAddress) Returns aTransportMappinginstance that is initialized with the supplied transport address.static TransportMappingsReturns theTransportMappingssingleton.protected void
-
Field Details
-
TRANSPORT_MAPPINGS
- See Also:
-
-
Constructor Details
-
TransportMappings
protected TransportMappings()
-
-
Method Details
-
getInstance
Returns theTransportMappingssingleton.- Returns:
- the
TransportMappingsinstance.
-
createTransportMapping
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.- 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()
-