Package org.springframework.data.web
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
ConstructorDescriptionCreates a newXmlBeamHttpMessageConverter
.XmlBeamHttpMessageConverter
(org.xmlbeam.XBProjector projector) Creates a newXmlBeamHttpMessageConverter
using the givenXBProjector
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
protected Object
readInternal
(Class<? extends Object> clazz, org.springframework.http.HttpInputMessage inputMessage) protected boolean
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()Creates a newXmlBeamHttpMessageConverter
. -
XmlBeamHttpMessageConverter
public XmlBeamHttpMessageConverter(org.xmlbeam.XBProjector projector) Creates a newXmlBeamHttpMessageConverter
using the givenXBProjector
.- Parameters:
projector
- must not be null.
-
-
Method Details
-
supports
- Specified by:
supports
in classorg.springframework.http.converter.AbstractHttpMessageConverter<Object>
-
canWrite
-
readInternal
protected Object readInternal(Class<? extends Object> clazz, org.springframework.http.HttpInputMessage inputMessage) throws IOException, org.springframework.http.converter.HttpMessageNotReadableException - Specified by:
readInternal
in classorg.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 classorg.springframework.http.converter.AbstractHttpMessageConverter<Object>
- Throws:
IOException
org.springframework.http.converter.HttpMessageNotWritableException
-