public class XmlBeamHttpMessageConverter extends AbstractHttpMessageConverter<Object>
HttpMessageConverter
to create XMLBeam-based projection instances for interfaces.logger
Constructor and Description |
---|
XmlBeamHttpMessageConverter()
Creates a new
XmlBeamHttpMessageConverter . |
XmlBeamHttpMessageConverter(org.xmlbeam.XBProjector projector)
Creates a new
XmlBeamHttpMessageConverter using the given XBProjector . |
Modifier and Type | Method and Description |
---|---|
boolean |
canWrite(Class<?> clazz,
MediaType mediaType) |
protected Object |
readInternal(Class<? extends Object> clazz,
HttpInputMessage inputMessage) |
protected boolean |
supports(Class<?> type) |
protected void |
writeInternal(Object t,
HttpOutputMessage outputMessage) |
addDefaultHeaders, canRead, canRead, canWrite, getContentLength, getDefaultCharset, getDefaultContentType, getSupportedMediaTypes, read, setDefaultCharset, setSupportedMediaTypes, write
public XmlBeamHttpMessageConverter()
XmlBeamHttpMessageConverter
.public XmlBeamHttpMessageConverter(org.xmlbeam.XBProjector projector)
XmlBeamHttpMessageConverter
using the given XBProjector
.projector
- must not be null.protected boolean supports(Class<?> type)
supports
in class AbstractHttpMessageConverter<Object>
public boolean canWrite(Class<?> clazz, @Nullable MediaType mediaType)
canWrite
in interface HttpMessageConverter<Object>
canWrite
in class AbstractHttpMessageConverter<Object>
protected Object readInternal(Class<? extends Object> clazz, HttpInputMessage inputMessage) throws IOException, HttpMessageNotReadableException
readInternal
in class AbstractHttpMessageConverter<Object>
IOException
HttpMessageNotReadableException
protected void writeInternal(Object t, HttpOutputMessage outputMessage) throws IOException, HttpMessageNotWritableException
writeInternal
in class AbstractHttpMessageConverter<Object>
IOException
HttpMessageNotWritableException
Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.