\GeoNetworkRestfulService
GeoNetwork specific restful service
GeoNetwork requires authentication via cookies. The current RestfulService
implementation does not allow the usage of cookies and pass those on to
following requests.
This implementation authenticates the given username/password at the
GeoNetwork node and perform a search.
Synopsis
class GeoNetworkRestfulService
extends RestfulService
{
- // members
- private boolean $requireAuthentication = false;
- private string $username = '';
- private string $password = '';
- // methods
- public void setRequireAuthentication()
- public boolean getRequireAuthentication()
- public void setUsername()
- protected string getUsername()
- public void setPassword()
- protected string getPassword()
- public void request()
Hierarchy
Extends
- RestfulService
Members
private
- $password
- $requireAuthentication
—
boolean
attribute stores the flag is the request need to authenticate at the server side first (i.e. required for the insert method). - $username
Methods
protected
- getPassword() — Return GeoNetwork's password
- getUsername() — Return GeoNetwork's username
public
- getRequireAuthentication() — Gets the flag for authentication.
- request() — Send a CURL request
- setPassword() — Set GeoNetwork's password
- setRequireAuthentication() — Sets the flag for authentication.
- setUsername() — Set username for GeoNetwork authentication.