Class IbisClientConnection
Default implementation of the ClientConnection
interface, to allow
methods in the Lookup/Ibis web service API to be invoked.
- IbisClientConnection implements ClientConnection
Methods summary
public static
|
#
createConnection()
Create an IbisClientConnection to the Lookup/Ibis web service API at https://www.lookup.cam.ac.uk/. |
public static
|
#
createTestConnection()
Create an IbisClientConnection to the Lookup/Ibis test web service API at https://lookup-test.srv.uis.cam.ac.uk/. |
public static
|
#
createLocalConnection()
Create an IbisClientConnection to a Lookup/Ibis web service API running locally on https://localhost:8443/ibis/. |
public
|
#
__construct(string $urlBase,
boolean $checkCertificates)
Create a new IbisClientConnection using the specified URL base, which should be something like https://www.lookup.cam.ac.uk/. It is strongly recommended that certificate checking be enabled. |
public
|
#
setUsername(string $username)
Set the username to use when connecting to the Lookup/Ibis web service. By default connections are anonymous, which gives read-only access. This method enables authentication as a group, using the group's password, which gives read/write access and also access to certain non-public data, based on the group's privileges. |
public
|
#
setPassword(string $password)
Set the password to use when connecting to the Lookup/Ibis web service. This is only necessary when connecting as a group, in which case it should be that group's password. |
public
|
#
invokeGetMethod(string $path,
string[] $pathParams,
array $queryParams)
Invoke a web service GET method. |
public
|
#
invokeMethod(string $method,
string $path,
string[] $pathParams,
array $queryParams,
array $formParams = null)
Invoke a web service GET, POST, PUT or DELETE method. |