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
ConstructorsConstructorDescriptionCreates a newXmlBeamHttpMessageConverter.XmlBeamHttpMessageConverter(org.xmlbeam.XBProjector projector) Creates a newXmlBeamHttpMessageConverterusing the givenXBProjector. -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected ObjectreadInternal(Class<? extends Object> clazz, HttpInputMessage inputMessage) protected booleanprotected voidwriteInternal(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, writeMethods 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
-
XmlBeamHttpMessageConverter
public XmlBeamHttpMessageConverter()Creates a newXmlBeamHttpMessageConverter. -
XmlBeamHttpMessageConverter
public XmlBeamHttpMessageConverter(org.xmlbeam.XBProjector projector) Creates a newXmlBeamHttpMessageConverterusing the givenXBProjector.- Parameters:
projector- must not be null.
-
-
Method Details
-
supports
- Specified by:
supportsin classAbstractHttpMessageConverter<Object>
-
canWrite
- Specified by:
canWritein interfaceHttpMessageConverter<Object>- Overrides:
canWritein classAbstractHttpMessageConverter<Object>
-
readInternal
protected Object readInternal(Class<? extends Object> clazz, HttpInputMessage inputMessage) throws IOException, HttpMessageNotReadableException - Specified by:
readInternalin classAbstractHttpMessageConverter<Object>- Throws:
IOExceptionHttpMessageNotReadableException
-
writeInternal
protected void writeInternal(Object t, HttpOutputMessage outputMessage) throws IOException, HttpMessageNotWritableException - Specified by:
writeInternalin classAbstractHttpMessageConverter<Object>- Throws:
IOExceptionHttpMessageNotWritableException
-