TM Service Discovery
Release 2.0

org.eclipse.tm.discovery.transport
Class TransportFactory

java.lang.Object
  extended by org.eclipse.tm.discovery.transport.TransportFactory

public class TransportFactory
extends Object

Factory for the remoste system connection.


Constructor Summary
TransportFactory()
           
 
Method Summary
static ITransport getTransport(String transportName, String address, int timeOut)
          Gets the ITransport implementation of a transport given its name
static String[] getTransportList()
          Returns the available transport names.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransportFactory

public TransportFactory()
Method Detail

getTransportList

public static String[] getTransportList()
Returns the available transport names. The transport names are registered in the field name of the extension point discoveryTransport

Returns:
Array of available transport names

getTransport

public static ITransport getTransport(String transportName,
                                      String address,
                                      int timeOut)
                               throws Exception
Gets the ITransport implementation of a transport given its name

Parameters:
transportName - Name of the transport
address - Address of the target device
timeOut - Timeout in milliseconds
Returns:
ITranport implementation of the transport matching the given name. Null if the transport cannot be found.
Throws:
Exception

TM Service Discovery
Release 2.0

Copyright (c) 2007 Symbian Software Ltd. and others. All Rights Reserved.