public final class PadreConfiguration
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static PadreConfiguration |
getInstance()
Singleton: returns unique instance.
|
org.bbaw.pdr.padre.client.PadreClient |
getPadreClient()
Returns a client for communication the the configured PaDRe server.
|
void |
setCredentials(java.net.URI baseURI,
java.lang.String username,
java.lang.String password)
Sets credentials for any access to PaDRe.
|
public static PadreConfiguration getInstance()
public void setCredentials(java.net.URI baseURI, java.lang.String username, java.lang.String password) throws org.bbaw.pdr.padre.client.PadreClientException
baseURI
- Base URI of PaDRe server.username
- Username for communication with PaDRe server.password
- Password for communication with PaDRe server.org.bbaw.pdr.padre.client.PadreClientException
- Error during initialisation of PaDRe client.public org.bbaw.pdr.padre.client.PadreClient getPadreClient() throws org.bbaw.pdr.padre.client.PadreClientException
org.bbaw.pdr.padre.client.PadreClientException
- PaDRe client not yet configured.