Package org.springframework.social.support

Examples of org.springframework.social.support.FormMapHttpMessageConverter


  protected RestTemplate createRestTemplate() {
    ClientHttpRequestFactory requestFactory = ClientHttpRequestFactorySelector.getRequestFactory();
    RestTemplate restTemplate = new RestTemplate(requestFactory);
    List<HttpMessageConverter<?>> converters = new ArrayList<HttpMessageConverter<?>>(2);
    converters.add(new FormHttpMessageConverter());
    converters.add(new FormMapHttpMessageConverter());
    converters.add(new MappingJackson2HttpMessageConverter());
    restTemplate.setMessageConverters(converters);
    if (!useParametersForClientAuthentication) {
      List<ClientHttpRequestInterceptor> interceptors = restTemplate.getInterceptors();
      if (interceptors == null) {   // defensively initialize list if it is null. (See SOCIAL-430)
View Full Code Here

TOP

Related Classes of org.springframework.social.support.FormMapHttpMessageConverter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.