Package org.springframework.messaging.converter

Examples of org.springframework.messaging.converter.DefaultContentTypeResolver


    boolean registerDefaults = configureMessageConverters(converters);
    if (registerDefaults) {
      converters.add(new StringMessageConverter());
      converters.add(new ByteArrayMessageConverter());
      if (jackson2Present) {
        DefaultContentTypeResolver resolver = new DefaultContentTypeResolver();
        resolver.setDefaultMimeType(MimeTypeUtils.APPLICATION_JSON);
        MappingJackson2MessageConverter converter = new MappingJackson2MessageConverter();
        converter.setContentTypeResolver(resolver);
        converters.add(converter);
      }
    }
View Full Code Here

TOP

Related Classes of org.springframework.messaging.converter.DefaultContentTypeResolver

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.