Package org.springframework.data.web
Class XmlBeamHttpMessageConverter
java.lang.Object
org.springframework.http.converter.AbstractHttpMessageConverter<Object>
org.springframework.data.web.XmlBeamHttpMessageConverter
- All Implemented Interfaces:
HttpMessageConverter<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, HttpInputMessage inputMessage) protected boolean
protected void
writeInternal
(Object t, HttpOutputMessage outputMessage) Methods inherited from class org.springframework.http.converter.AbstractHttpMessageConverter
addDefaultHeaders, canRead, canRead, canWrite, getContentLength, getDefaultCharset, getDefaultContentType, getSupportedMediaTypes, read, setDefaultCharset, setSupportedMediaTypes, supportsRepeatableWrites, 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 classAbstractHttpMessageConverter<Object>
-
canWrite
- Specified by:
canWrite
in interfaceHttpMessageConverter<Object>
- Overrides:
canWrite
in classAbstractHttpMessageConverter<Object>
-
readInternal
protected Object readInternal(Class<? extends Object> clazz, HttpInputMessage inputMessage) throws IOException, HttpMessageNotReadableException - Specified by:
readInternal
in classAbstractHttpMessageConverter<Object>
- Throws:
IOException
HttpMessageNotReadableException
-
writeInternal
protected void writeInternal(Object t, HttpOutputMessage outputMessage) throws IOException, HttpMessageNotWritableException - Specified by:
writeInternal
in classAbstractHttpMessageConverter<Object>
- Throws:
IOException
HttpMessageNotWritableException
-