Class DefaultRestTemplateFactory
java.lang.Object
de.hybris.platform.apiregistryservices.utils.DefaultRestTemplateFactory
Default implementation to generate the new instance of
RestTemplate depending on the destination and it's credentials.
Please do not use this class in your developments as this class will be removed soon.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.web.client.RestTemplategetRestTemplate(AbstractDestinationModel destinationModel) protected Map<Class<? extends AbstractCredentialModel>,RestTemplateProvider>
-
Constructor Details
-
DefaultRestTemplateFactory
public DefaultRestTemplateFactory()
-
-
Method Details
-
getRestTemplate
public org.springframework.web.client.RestTemplate getRestTemplate(AbstractDestinationModel destinationModel) throws CredentialException - Throws:
CredentialException
-
getRestTemplateProviders
protected Map<Class<? extends AbstractCredentialModel>,RestTemplateProvider> getRestTemplateProviders()
-