DiscoveryService

class OC\OCS\DiscoveryService
Source:lib/private/OCS/DiscoveryService.php#39
Implements:OCP\OCS\IDiscoveryService

Properties

Methods

public OC\OCS\DiscoveryService::__construct($cacheFactory, $clientService)
Source:

lib/private/OCS/DiscoveryService.php#51

Parameters:
public OC\OCS\DiscoveryService::discover($remote, $service, $skipCache=false)
Discover OCS end-points
If no valid discovery data is found the defaults are returned
Source:

lib/private/OCS/DiscoveryService.php#69

Parameters:
  • $remote (string)
  • $service (string) the service you want to discover
  • $skipCache (bool) We won’t check if the data is in the cache. This is usefull if a background job is updating the status
Returns:

array

protected OC\OCS\DiscoveryService::getEndpoints($decodedServices, $service)
get requested end-points from the requested service
Source:

lib/private/OCS/DiscoveryService.php#111

Parameters:
  • $decodedServices (array)
  • $service (string)
Returns:

array

protected OC\OCS\DiscoveryService::isSafeUrl($url)
Returns whether the specified URL includes only safe characters, if not
returns false
Source:

lib/private/OCS/DiscoveryService.php#132

Parameters:
  • $url (string)
Returns:

bool