public class DefaultDiscoveryClient extends Object implements DiscoveryClient
| Constructor and Description |
|---|
DefaultDiscoveryClient(Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
<T extends com.sdl.odata.client.api.model.ODataIdAwareEntity> |
getAwareEntities(Class<T> entityClazz,
Optional<String> oAuthToken,
String... expandParameters)
Request for
ODataIdAwareEntityies WITH security attached. |
<T extends com.sdl.odata.client.api.model.ODataIdAwareEntity> |
getAwareEntity(Class<T> entityClazz,
Optional<String> oAuthToken,
String... expandParameters)
Request for
ODataIdAwareEntityies with security attached. |
<T extends Capability> |
getCapabilities(Class<T> capabilityClazz,
Optional<String> oAuthToken,
String... expandParameters)
Request for
Capabilityies WITH security attached. |
<T extends Capability> |
getCapability(Class<T> capabilityClazz,
Optional<String> oAuthToken,
String... expandParameters)
Request for
Capability WITH security attached and expand parameters. |
String |
getServiceUrl()
Return the service url.
|
Optional<TokenServiceCapability> |
getTokenServiceCapability()
Request for
TokenServiceCapability. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCapabilities, getCapabilities, getCapability, getCapabilitypublic DefaultDiscoveryClient(Properties properties)
public Optional<TokenServiceCapability> getTokenServiceCapability()
DiscoveryClientTokenServiceCapability.getTokenServiceCapability in interface DiscoveryClientTokenServiceCapabilitypublic <T extends Capability> Optional<T> getCapability(Class<T> capabilityClazz, Optional<String> oAuthToken, String... expandParameters)
DiscoveryClientCapability WITH security attached and expand parameters.getCapability in interface DiscoveryClientT - Class which extends Capability interfacecapabilityClazz - The requested capability classoAuthToken - The Optional OAuth tokenexpandParameters - The expand parameterspublic <T extends com.sdl.odata.client.api.model.ODataIdAwareEntity> Optional<T> getAwareEntity(Class<T> entityClazz, Optional<String> oAuthToken, String... expandParameters)
DiscoveryClientODataIdAwareEntityies with security attached.getAwareEntity in interface DiscoveryClientT - Class which extends ODataIdAwareEntity interfaceentityClazz - The requested aware entity classoAuthToken - The Optional OAuth tokenexpandParameters - The expand parameterspublic <T extends com.sdl.odata.client.api.model.ODataIdAwareEntity> List<T> getAwareEntities(Class<T> entityClazz, Optional<String> oAuthToken, String... expandParameters)
DiscoveryClientODataIdAwareEntityies WITH security attached.getAwareEntities in interface DiscoveryClientT - Class which extends ODataIdAwareEntity interfaceentityClazz - The requested entity classoAuthToken - The Optional OAuth tokenexpandParameters - The expand parameterspublic <T extends Capability> List<T> getCapabilities(Class<T> capabilityClazz, Optional<String> oAuthToken, String... expandParameters)
DiscoveryClientCapabilityies WITH security attached.getCapabilities in interface DiscoveryClientT - Class which extends Capability interfacecapabilityClazz - The requested capability classoAuthToken - The Optional OAuth tokenexpandParameters - The expand parameterspublic String getServiceUrl()
DiscoveryClientgetServiceUrl in interface DiscoveryClientCopyright © 2017 SDL Group. All rights reserved.