Package org.springframework.http.converter.xml

Examples of org.springframework.http.converter.xml.Jaxb2RootElementHttpMessageConverter


    }
    if (jackson2XmlPresent) {
      messageConverters.add(new MappingJackson2XmlHttpMessageConverter());
    }
    else if (jaxb2Present) {
      this.messageConverters.add(new Jaxb2RootElementHttpMessageConverter());
    }
    if (jackson2Present) {
      this.messageConverters.add(new MappingJackson2HttpMessageConverter());
    }
    else if (gsonPresent) {
View Full Code Here



  public AllEncompassingFormHttpMessageConverter() {
    addPartConverter(new SourceHttpMessageConverter<Source>());
    if (jaxb2Present) {
      addPartConverter(new Jaxb2RootElementHttpMessageConverter());
    }
    if (jackson2Present) {
      addPartConverter(new MappingJackson2HttpMessageConverter());
    }
  }
View Full Code Here

    if (jackson2XmlPresent) {
      messageConverters.add(new MappingJackson2XmlHttpMessageConverter());
    }
    else if (jaxb2Present) {
      messageConverters.add(new Jaxb2RootElementHttpMessageConverter());
    }

    if (jackson2Present) {
      messageConverters.add(new MappingJackson2HttpMessageConverter());
    }
View Full Code Here

    this.messageConverters.add(new ByteArrayHttpMessageConverter());
    this.messageConverters.add(new StringHttpMessageConverter());
    this.messageConverters.add(new FormHttpMessageConverter());
    this.messageConverters.add(new SourceHttpMessageConverter());
    if (jaxb2Present) {
      this.messageConverters.add(new Jaxb2RootElementHttpMessageConverter());
    }
    if (jacksonPresent) {
      this.messageConverters.add(new MappingJacksonHttpMessageConverter());
    }
  }
View Full Code Here

    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());
    }
    if (jacksonPresent) {
      this.messageConverters.add(new MappingJacksonHttpMessageConverter());
    }
    if (romePresent) {
View Full Code Here

        new Person("Yehudi Menuhin").setSomeBoolean(true));

    this.people = new PeopleWrapper(composers, performers);

    List<HttpMessageConverter<?>> converters = new ArrayList<HttpMessageConverter<?>>();
    converters.add(new Jaxb2RootElementHttpMessageConverter());

    this.restTemplate = new RestTemplate();
    this.restTemplate.setMessageConverters(converters);

    this.mockServer = MockRestServiceServer.createServer(this.restTemplate);
View Full Code Here

        new Person("Robert Schumann").setSomeDouble(Double.NaN));

    this.people = new PeopleWrapper(composers);

    List<HttpMessageConverter<?>> converters = new ArrayList<HttpMessageConverter<?>>();
    converters.add(new Jaxb2RootElementHttpMessageConverter());

    this.restTemplate = new RestTemplate();
    this.restTemplate.setMessageConverters(converters);

    this.mockServer = MockRestServiceServer.createServer(this.restTemplate);
View Full Code Here

  public void setup() {
    MockitoAnnotations.initMocks(this);

    this.mockMvc = standaloneSetup(controller)
            .setMessageConverters(new MappingJackson2HttpMessageConverter(),
                                  new Jaxb2RootElementHttpMessageConverter()).build();
  }
View Full Code Here

    MockitoAnnotations.initMocks(this);

    this.mockMvc = standaloneSetup(controller)
            .setMessageConverters(
                    new MappingJackson2HttpMessageConverter(),
                    new Jaxb2RootElementHttpMessageConverter()).build();
  }
View Full Code Here

    else if (jacksonPresent) {
      // avoiding import of MappingJacksonHttpMessageConverter to prevent deprecation warning
      messageConverters.add(new MappingJackson2HttpMessageConverter());
    }
    if (jaxb2Present) {
      Jaxb2RootElementHttpMessageConverter jaxbConverter = new Jaxb2RootElementHttpMessageConverter();
      initializeJAXBContexts(jaxbConverter);
      messageConverters.add(jaxbConverter);
    }
    return messageConverters;
  }
View Full Code Here

TOP

Related Classes of org.springframework.http.converter.xml.Jaxb2RootElementHttpMessageConverter

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.