org.snmp4j.transport
Class TransportMappings

java.lang.Object
  extended by 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

Field Summary
static java.lang.String TRANSPORT_MAPPINGS
           
 
Constructor Summary
protected TransportMappings()
           
 
Method Summary
 TransportMapping 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRANSPORT_MAPPINGS

public static final java.lang.String TRANSPORT_MAPPINGS
See Also:
Constant Field Values
Constructor Detail

TransportMappings

protected TransportMappings()
Method Detail

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 2005-2010 Frank Fock (SNMP4J.org)

Copyright © 2011 SNMP4J.org. All Rights Reserved.