Announcement Announcement Module
No announcement yet.
Spring 3.1 RestTemplate with Https Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring 3.1 RestTemplate with Https

    I have a working Rest client with Spring 3.1. But I wish to use a Https endpoint (with a valid certificate), no login is required.
    What is the bacic code I need impliment the change.

    Changing the url to https//... doesnt seem. I have tried using

    restTemplate.setRequestFactory(new HttpComponentsClientHttpRequestFactory());

    on the basis that the factory's source seams to be initilizing https components.

    Any pointers would be appreciated.