de.unido.ls5.eti.client
Class EtiConnectionFactory

java.lang.Object
  extended by de.unido.ls5.eti.client.EtiConnectionFactory

public class EtiConnectionFactory
extends Object

This class handles the creation of EtiConnections. It instanciates protocol specific connection objects. Which protocol shall be used is infered from the server URI.

Rating red

Constructor Summary
EtiConnectionFactory()
           
 
Method Summary
static EtiConnection createConnection(URI uri)
          Instanciates an EtiConnection for a given URI.
static EtiConnection createConnection(URI uri, String sessionId)
          Instanciates a new EtiConnection for an already existing Session.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EtiConnectionFactory

public EtiConnectionFactory()
Method Detail

createConnection

public static EtiConnection createConnection(URI uri)
                                      throws EtiLocalException
Instanciates an EtiConnection for a given URI. The 'scheme' part of the URI must be either http (for an EtiConnectionSoap) or sepp (for an EtiConnectionSepp)

Parameters:
uri - The target endpoint for the EtiConnection
Returns:
a protocol specific instance of EtiConnection
Throws:
EtiLocalException - if the specified uri specifies a protocol which has no jETI implementation.

createConnection

public static EtiConnection createConnection(URI uri,
                                             String sessionId)
                                      throws EtiLocalException
Instanciates a new EtiConnection for an already existing Session. This is for example used by the forward function.

Parameters:
uri - The target endpoint for the EtiConnection
sessionId - The initial value for the connection's sessionId
Returns:
a protocol specific instance of EtiConnection
Throws:
EtiLocalException
See Also:
createConnection(URI)