Package org.springframework.http.converter

Examples of org.springframework.http.converter.ResourceHttpMessageConverter


  /** Create a new instance of the {@link RestTemplate} using default settings. */
  public RestTemplate() {
    this.messageConverters.add(new ByteArrayHttpMessageConverter());
    this.messageConverters.add(new StringHttpMessageConverter());
    this.messageConverters.add(new ResourceHttpMessageConverter());
    this.messageConverters.add(new SourceHttpMessageConverter());
    this.messageConverters.add(new XmlAwareFormHttpMessageConverter());
    if (jaxb2Present) {
      this.messageConverters.add(new Jaxb2RootElementHttpMessageConverter());
    }
View Full Code Here


            objectMapper.addMixInAnnotations(StepExecution.class, StepExecutionJacksonMixIn.class);
            objectMapper.addMixInAnnotations(ExecutionContext.class, ExecutionContextJacksonMixIn.class);
          }
        }

        converters.add(new ResourceHttpMessageConverter());
      }

      @Override
      public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new AccessControlInterceptor(allowedOrigin));
View Full Code Here

    List<HttpMessageConverter<?>> partConverters = new ArrayList<HttpMessageConverter<?>>();
    partConverters.add(new ByteArrayHttpMessageConverter());
    StringHttpMessageConverter stringHttpMessageConverter = new StringHttpMessageConverter(Charset.forName("UTF-8"));
    stringHttpMessageConverter.setWriteAcceptCharset(false);
    partConverters.add(stringHttpMessageConverter);
    partConverters.add(new ResourceHttpMessageConverter());   
    converter.setPartConverters(partConverters);
    return converter;
  }
View Full Code Here

    List<HttpMessageConverter<?>> partConverters = new ArrayList<HttpMessageConverter<?>>();
    partConverters.add(new ByteArrayHttpMessageConverter());
    StringHttpMessageConverter stringHttpMessageConverter = new StringHttpMessageConverter(Charset.forName("UTF-8"));
    stringHttpMessageConverter.setWriteAcceptCharset(false);
    partConverters.add(stringHttpMessageConverter);
    partConverters.add(new ResourceHttpMessageConverter());   
    converter.setPartConverters(partConverters);
    return converter;
  }
View Full Code Here

    StringHttpMessageConverter stringConverter = new StringHttpMessageConverter();
    stringConverter.setWriteAcceptCharset( false );

    addIfNoInstanceYetPresent( messageConverters, new ByteArrayHttpMessageConverter() );
    addIfNoInstanceYetPresent( messageConverters, stringConverter );
    addIfNoInstanceYetPresent( messageConverters, new ResourceHttpMessageConverter() );
    addIfNoInstanceYetPresent( messageConverters, new SourceHttpMessageConverter<Source>() );
    addIfNoInstanceYetPresent( messageConverters, new AllEncompassingFormHttpMessageConverter() );
    if ( romePresent ) {
      addIfNoInstanceYetPresent( messageConverters, new AtomFeedHttpMessageConverter() );
      addIfNoInstanceYetPresent( messageConverters, new RssChannelHttpMessageConverter() );
View Full Code Here

TOP

Related Classes of org.springframework.http.converter.ResourceHttpMessageConverter

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.