Class RestTemplateWrapper


  • public class RestTemplateWrapper
    extends java.lang.Object
    Wrapper for RestTemplate to handle ssl connections
    • Constructor Detail

      • RestTemplateWrapper

        public RestTemplateWrapper()
    • Method Detail

      • getUpdatedRestTemplate

        @Deprecated(since="1905",
                    forRemoval=true)
        public org.springframework.web.client.RestTemplate getUpdatedRestTemplate()
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 1905 This method returns the first RestTemplate from the restTemplateFactorycache, if no RestTemplate found then a new RestTemplate Object will be returned.
      • updateCredentials

        @Deprecated(since="1905",
                    forRemoval=true)
        public void updateCredentials​(AbstractDestinationModel destination)
                               throws CredentialException
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 1905 Use the protected version of this method("updateCredential") instead.
        Throws:
        CredentialException
      • invalidateTheCache

        public void invalidateTheCache​(java.lang.String credentialId)
      • getRestTemplate

        @Deprecated(since="1905",
                    forRemoval=true)
        protected org.springframework.web.client.RestTemplate getRestTemplate()
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 1905 This method returns the first RestTemplate from the restTemplateFactorycache, if no RestTemplate found then a new RestTemplate Object will be returned.
        Throws:
        CredentialException
      • getKeepAlive

        protected int getKeepAlive()
      • setRestTemplate

        @Deprecated(since="1905",
                    forRemoval=true)
        public void setRestTemplate​(org.springframework.web.client.RestTemplate restTemplate)
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 1905 This method practically does nothing as it is not following the caching concept while storing the RestTemplate for the given credentials. It is there only for the backward compatibility.
      • validateCredential

        @Deprecated(since="1905",
                    forRemoval=true)
        protected void validateCredential​(AbstractDestinationModel destination)
                                   throws CredentialException
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 1905 This method has been replaced by validateCredential(AbstractCredentialModel) for convention.
        Throws:
        CredentialException
      • getTimeout

        protected int getTimeout()
      • setTimeout

        public void setTimeout​(int timeout)
      • setMessageConverters

        public void setMessageConverters​(java.util.List<org.springframework.http.converter.HttpMessageConverter<java.lang.Object>> messageConverters)
      • getMessageConverters

        protected java.util.List<org.springframework.http.converter.HttpMessageConverter<java.lang.Object>> getMessageConverters()
      • setSslContextFactoryService

        public void setSslContextFactoryService​(SSLContextFactoryService sslContextFactoryService)