Package energy.eddie.outbound.rest.web
Class FallbackXmlMessageConverter
java.lang.Object
energy.eddie.outbound.rest.web.FallbackXmlMessageConverter
- All Implemented Interfaces:
org.springframework.http.converter.HttpMessageConverter<Object>
-
Constructor Summary
ConstructorsConstructorDescriptionFallbackXmlMessageConverter(org.springframework.http.converter.xml.MarshallingHttpMessageConverter jaxbConverter, org.springframework.http.converter.xml.MappingJackson2XmlHttpMessageConverter jacksonConverter) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
- Specified by:
canReadin interfaceorg.springframework.http.converter.HttpMessageConverter<Object>
-
canWrite
- Specified by:
canWritein interfaceorg.springframework.http.converter.HttpMessageConverter<Object>
-
getSupportedMediaTypes
- Specified by:
getSupportedMediaTypesin interfaceorg.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:
readin interfaceorg.springframework.http.converter.HttpMessageConverter<Object>- Throws:
IOExceptionorg.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:
writein interfaceorg.springframework.http.converter.HttpMessageConverter<Object>- Throws:
IOExceptionorg.springframework.http.converter.HttpMessageNotWritableException
-