public class TransportMappings extends Object
TransportMappings
factory can be used to create a transport
mapping for an address class.Modifier and Type | Field and Description |
---|---|
static String |
TRANSPORT_MAPPINGS |
Modifier | Constructor and Description |
---|---|
protected |
TransportMappings() |
Modifier and Type | Method and Description |
---|---|
TransportMapping<? extends Address> |
createTransportMapping(Address transportAddress)
Returns a
TransportMapping instance that is initialized with
the supplied transport address. |
static TransportMappings |
getInstance()
Returns the
TransportMappings singleton. |
protected void |
registerTransportMappings() |
public static final String TRANSPORT_MAPPINGS
public static TransportMappings getInstance()
TransportMappings
singleton.TransportMappings
instance.public TransportMapping<? extends Address> createTransportMapping(Address transportAddress)
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.transportAddress
- an Address
instance that the transport mapping to lookup
has to support.TransportMapping
that supports the specified
transportAddress
or null
if such a mapping
cannot be found.protected void registerTransportMappings()
Copyright © 2016 SNMP4J.org. All rights reserved.