de.unido.ls5.eti.client
Class EtiConnectionFactory
java.lang.Object
de.unido.ls5.eti.client.EtiConnectionFactory
public class EtiConnectionFactory
- extends Object
This class handles the creation of EtiConnection
s. It instanciates
protocol specific connection objects. Which protocol shall be used is infered
from the server URI.
- Rating

Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EtiConnectionFactory
public EtiConnectionFactory()
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 EtiConnectionsessionId
- The initial value for the connection's sessionId
- Returns:
- a protocol specific instance of
EtiConnection
- Throws:
EtiLocalException
- See Also:
createConnection(URI)