public class TavernaServerConnectionFactory extends Object
To create a connected TavernaServer
instance,use
connectNoAuth(URI)
for anonymous connection, or
connectAuth(URI, String, String)
) for authenticated access.
Constructor and Description |
---|
TavernaServerConnectionFactory() |
Modifier and Type | Method and Description |
---|---|
TavernaServer |
connectAuth(URI uri,
String username,
String password)
Connect to the Taverna Server with the given authentication.
|
TavernaServer |
connectNoAuth(URI uri)
Connect to the Taverna Server without authentication.
|
public TavernaServer connectNoAuth(URI uri)
The connection will be anonymous, but can later be made authenticated using
TavernaServer.upgradeToAuth(String, String)
.
uri
- URI of Taverna Server REST endpoint, e.g.
http://localhost:8080/taverna-server/rest
TavernaServer
instancepublic TavernaServer connectAuth(URI uri, String username, String password)
uri
- URI of Taverna Server REST endpoint, e.g.
http://localhost:8080/taverna-server/rest
username
- Usernamepassword
- PasswordTavernaServer
instanceCopyright © 2015–2018 The Apache Software Foundation. All rights reserved.