ServiceInterface
in
Tags
Table of Contents
Constants
- QUERY_DISSERV = 2
- QUERY_RES = 1
Methods
- getFormats() : array<string|int, Format>
- Returns all return formats provided by the dissemination service.
- getLocation() : string
- Gets disseminations service's URL (before parameters subsitution)
- getMatchingResources() : Generator<string|int, RepoResourceInterface>
- Returns repository resources which can be disseminated by a given service
- getRequest() : Request
- Returns PSR-7 HTTP request disseminating a given resource.
- getRevProxy() : bool
- Should the dissemination service request be reverse-proxied?
- loadParametersFromMetadata() : void
- Tells the service it can load information on service parameters from its metadata.
Constants
QUERY_DISSERV
public
mixed
QUERY_DISSERV
= 2
QUERY_RES
public
mixed
QUERY_RES
= 1
Methods
getFormats()
Returns all return formats provided by the dissemination service.
public
getFormats() : array<string|int, Format>
Technically return formats are nothing more then strings. There is no requirement forcing them to be mime types, etc.
Return values
array<string|int, Format>getLocation()
Gets disseminations service's URL (before parameters subsitution)
public
getLocation() : string
Return values
stringgetMatchingResources()
Returns repository resources which can be disseminated by a given service
public
getMatchingResources() : Generator<string|int, RepoResourceInterface>
Return values
Generator<string|int, RepoResourceInterface>getRequest()
Returns PSR-7 HTTP request disseminating a given resource.
public
getRequest(RepoResourceInterface $res) : Request
Parameters
- $res : RepoResourceInterface
-
repository resource to be disseminated
Tags
Return values
RequestgetRevProxy()
Should the dissemination service request be reverse-proxied?
public
getRevProxy() : bool
If it's not set in the metadata, false is assumed.
Return values
boolloadParametersFromMetadata()
Tells the service it can load information on service parameters from its metadata.
public
loadParametersFromMetadata() : void
Information will be loaded in a lazy way (when it's needed).