Class SimpleXmlHttpMessageConverter

java.lang.Object
org.springframework.http.converter.AbstractHttpMessageConverter<Object>
net.solarnetwork.web.support.SimpleXmlHttpMessageConverter
All Implemented Interfaces:
org.springframework.http.converter.HttpMessageConverter<Object>

public class SimpleXmlHttpMessageConverter extends org.springframework.http.converter.AbstractHttpMessageConverter<Object>
HttpMessageConverter that marshals objects into XML documents.
Version:
1.1
Author:
matt
  • Field Details

  • Constructor Details

    • SimpleXmlHttpMessageConverter

      public SimpleXmlHttpMessageConverter()
      Default constructor.
  • Method Details

    • supports

      protected boolean supports(Class<?> clazz)
      Specified by:
      supports in class org.springframework.http.converter.AbstractHttpMessageConverter<Object>
    • readInternal

      protected Object readInternal(Class<? extends Object> clazz, org.springframework.http.HttpInputMessage inputMessage) throws IOException, org.springframework.http.converter.HttpMessageNotReadableException
      Specified by:
      readInternal in class org.springframework.http.converter.AbstractHttpMessageConverter<Object>
      Throws:
      IOException
      org.springframework.http.converter.HttpMessageNotReadableException
    • writeInternal

      protected void writeInternal(Object t, org.springframework.http.HttpOutputMessage outputMessage) throws IOException, org.springframework.http.converter.HttpMessageNotWritableException
      Specified by:
      writeInternal in class org.springframework.http.converter.AbstractHttpMessageConverter<Object>
      Throws:
      IOException
      org.springframework.http.converter.HttpMessageNotWritableException
    • getClassNamesAllowedForNesting

      public Set<String> getClassNamesAllowedForNesting()
      Get the class names allowed for nesting.
      Returns:
      the class names
    • setClassNamesAllowedForNesting

      public void setClassNamesAllowedForNesting(Set<String> classNamesAllowedForNesting)
      Set the class names allowed for nesting.
      Parameters:
      classNamesAllowedForNesting - the class names
    • setXmlOutputFactory

      public void setXmlOutputFactory(XMLOutputFactory xmlOutputFactory)
      Set the XML output factory.
      Parameters:
      xmlOutputFactory - the factory to set
    • getXmlOutputFactory

      public XMLOutputFactory getXmlOutputFactory()
      Get the XML output factory.
      Returns:
      the factory
    • getPropertySerializerRegistrar

      public net.solarnetwork.codec.PropertySerializerRegistrar getPropertySerializerRegistrar()
      Get the property serializer registrar.
      Returns:
      the registrar
    • setPropertySerializerRegistrar

      public void setPropertySerializerRegistrar(net.solarnetwork.codec.PropertySerializerRegistrar propertySerializerRegistrar)
      Set the property serializer registrar.
      Parameters:
      propertySerializerRegistrar - the registrar to set