Class FallbackXmlMessageConverter

java.lang.Object
energy.eddie.outbound.rest.web.FallbackXmlMessageConverter
All Implemented Interfaces:
org.springframework.http.converter.HttpMessageConverter<Object>

public class FallbackXmlMessageConverter extends Object implements org.springframework.http.converter.HttpMessageConverter<Object>
  • Constructor Summary

    Constructors
    Constructor
    Description
    FallbackXmlMessageConverter(org.springframework.http.converter.xml.MarshallingHttpMessageConverter jaxbConverter, org.springframework.http.converter.xml.MappingJackson2XmlHttpMessageConverter jacksonConverter)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canRead(Class<?> clazz, org.springframework.http.MediaType mediaType)
     
    boolean
    canWrite(Class<?> clazz, org.springframework.http.MediaType mediaType)
     
    List<org.springframework.http.MediaType>
     
    read(Class<?> clazz, org.springframework.http.HttpInputMessage inputMessage)
     
    void
    write(Object o, org.springframework.http.MediaType contentType, org.springframework.http.HttpOutputMessage outputMessage)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.http.converter.HttpMessageConverter

    getSupportedMediaTypes
  • Constructor Details

    • FallbackXmlMessageConverter

      public FallbackXmlMessageConverter(org.springframework.http.converter.xml.MarshallingHttpMessageConverter jaxbConverter, org.springframework.http.converter.xml.MappingJackson2XmlHttpMessageConverter jacksonConverter)
  • Method Details

    • canRead

      public boolean canRead(Class<?> clazz, org.springframework.http.MediaType mediaType)
      Specified by:
      canRead in interface org.springframework.http.converter.HttpMessageConverter<Object>
    • canWrite

      public boolean canWrite(Class<?> clazz, org.springframework.http.MediaType mediaType)
      Specified by:
      canWrite in interface org.springframework.http.converter.HttpMessageConverter<Object>
    • getSupportedMediaTypes

      public List<org.springframework.http.MediaType> getSupportedMediaTypes()
      Specified by:
      getSupportedMediaTypes in interface org.springframework.http.converter.HttpMessageConverter<Object>
    • read

      public Object read(Class<?> clazz, org.springframework.http.HttpInputMessage inputMessage) throws IOException, org.springframework.http.converter.HttpMessageNotReadableException
      Specified by:
      read in interface org.springframework.http.converter.HttpMessageConverter<Object>
      Throws:
      IOException
      org.springframework.http.converter.HttpMessageNotReadableException
    • write

      public void write(Object o, org.springframework.http.MediaType contentType, org.springframework.http.HttpOutputMessage outputMessage) throws IOException, org.springframework.http.converter.HttpMessageNotWritableException
      Specified by:
      write in interface org.springframework.http.converter.HttpMessageConverter<Object>
      Throws:
      IOException
      org.springframework.http.converter.HttpMessageNotWritableException