org.snmp4j.transport
Class TransportMappings
java.lang.Object
org.snmp4j.transport.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:
- 1.1
- Author:
- Frank Fock
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TRANSPORT_MAPPINGS
public static final java.lang.String TRANSPORT_MAPPINGS
- See Also:
- Constant Field Values
TransportMappings
protected TransportMappings()
getInstance
public static TransportMappings getInstance()
- Returns the
TransportMappings
singleton.
- Returns:
- the
TransportMappings
instance.
createTransportMapping
public TransportMapping createTransportMapping(Address 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.
- 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()
Copyright © 2011 SNMP4J.org. All Rights Reserved.