Announcement Announcement Module
Collapse
No announcement yet.
Spring 3.1 RestTemplate with Https Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • 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.
Working...
X