Class XmlBeamHttpMessageConverter

java.lang.Object
org.springframework.http.converter.AbstractHttpMessageConverter<Object>
org.springframework.data.web.XmlBeamHttpMessageConverter
All Implemented Interfaces:
org.springframework.http.converter.HttpMessageConverter<Object>

public class XmlBeamHttpMessageConverter extends org.springframework.http.converter.AbstractHttpMessageConverter<Object>
A read-only HttpMessageConverter to create XMLBeam-based projection instances for interfaces.
Author:
Oliver Gierke, Christoph Strobl, Johannes Englmeier
See Also:
  • Field Summary

    Fields inherited from class org.springframework.http.converter.AbstractHttpMessageConverter

    logger
  • Constructor Summary

    Constructors
    Constructor
    Description
    XmlBeamHttpMessageConverter(org.xmlbeam.XBProjector projector)
    Creates a new XmlBeamHttpMessageConverter using the given XBProjector.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canWrite(Class<?> clazz, org.springframework.http.MediaType mediaType)
     
    protected Object
    readInternal(Class<? extends Object> clazz, org.springframework.http.HttpInputMessage inputMessage)
     
    protected boolean
    supports(Class<?> type)
     
    protected void
    writeInternal(Object t, org.springframework.http.HttpOutputMessage outputMessage)
     

    Methods inherited from class org.springframework.http.converter.AbstractHttpMessageConverter

    addDefaultHeaders, canRead, canRead, canWrite, getContentLength, getDefaultCharset, getDefaultContentType, getSupportedMediaTypes, read, setDefaultCharset, setSupportedMediaTypes, write

    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

    • XmlBeamHttpMessageConverter

      public XmlBeamHttpMessageConverter()
    • XmlBeamHttpMessageConverter

      public XmlBeamHttpMessageConverter(org.xmlbeam.XBProjector projector)
      Creates a new XmlBeamHttpMessageConverter using the given XBProjector.
      Parameters:
      projector - must not be null.
  • Method Details

    • supports

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

      public boolean canWrite(Class<?> clazz, @Nullable org.springframework.http.MediaType mediaType)
      Specified by:
      canWrite in interface org.springframework.http.converter.HttpMessageConverter<Object>
      Overrides:
      canWrite 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