Documentation

ServiceInterface

Tags
author

zozlak

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

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
string

getRevProxy()

Should the dissemination service request be reverse-proxied?

public getRevProxy() : bool

If it's not set in the metadata, false is assumed.

Return values
bool

loadParametersFromMetadata()

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).


        
On this page

Search results