Class DefaultApiRegistryClientService
java.lang.Object
de.hybris.platform.apiregistryservices.services.impl.DefaultApiRegistryClientService
- All Implemented Interfaces:
ApiRegistryClientService
Default implementation of
ApiRegistryClientService-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildClientConfig(Class clientType, ConsumedDestinationModel destination) Method to build client configuration as map for the given client client proxy typeprotected voidbuildDestinationConfig(Map<String, String> config, ConsumedDestinationModel destination) protected ClientFactoryprotected ConsumedDestinationLocatorStrategyprotected Map<Class,ClientCredentialPopulatingStrategy> protected DestinationService<AbstractDestinationModel><T> TlookupClient(Class<T> clientType) Generates a client proxy for a given client typevoidsetClientFactory(ClientFactory clientFactory) voidsetConsumedDestinationLocatorStrategy(ConsumedDestinationLocatorStrategy consumedDestinationLocatorStrategy) voidsetCredentialsStrategyMap(Map<Class, ClientCredentialPopulatingStrategy> credentialsStrategyMap) voidsetDestinationService(DestinationService<AbstractDestinationModel> destinationService)
-
Field Details
-
CLIENT_URL
- See Also:
-
OAUTH_URL
- See Also:
-
OAUTH_CLIENT_ID
- See Also:
-
OAUTH_CLIENT_SECRET
- See Also:
-
TENANT
- See Also:
-
CLIENT_SCOPE
- See Also:
-
-
Constructor Details
-
DefaultApiRegistryClientService
public DefaultApiRegistryClientService()
-
-
Method Details
-
lookupClient
Description copied from interface:ApiRegistryClientServiceGenerates a client proxy for a given client type- Specified by:
lookupClientin interfaceApiRegistryClientService- Type Parameters:
T- the parametrised type for the client type- Parameters:
clientType- the type of the client- Returns:
- the client proxy
- Throws:
CredentialException- in case when failed to find the expected credential
-
buildClientConfig
public Map<String,String> buildClientConfig(Class clientType, ConsumedDestinationModel destination) throws CredentialException Description copied from interface:ApiRegistryClientServiceMethod to build client configuration as map for the given client client proxy type- Specified by:
buildClientConfigin interfaceApiRegistryClientService- Parameters:
clientType- the type of the clientdestination- the consumed destination- Returns:
- map of client configurations
- Throws:
CredentialException- in case when responsible strategy fails
-
buildDestinationConfig
protected void buildDestinationConfig(Map<String, String> config, ConsumedDestinationModel destination) -
getClientFactory
-
setClientFactory
-
getDestinationService
-
setDestinationService
-
getConsumedDestinationLocatorStrategy
-
setConsumedDestinationLocatorStrategy
public void setConsumedDestinationLocatorStrategy(ConsumedDestinationLocatorStrategy consumedDestinationLocatorStrategy) -
getCredentialsStrategyMap
-
setCredentialsStrategyMap
public void setCredentialsStrategyMap(Map<Class, ClientCredentialPopulatingStrategy> credentialsStrategyMap)
-