Class SpringXStreamReaderWriter

java.lang.Object
com.xebialabs.xltype.serialization.xstream.XStreamReaderWriter
com.xebialabs.deployit.core.rest.xml.SpringXStreamReaderWriter
All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyReader<Object>, jakarta.ws.rs.ext.MessageBodyWriter<Object>, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

@Component @Provider @Produces({"application/*+xml","text/*+xml"}) @Consumes({"application/*+xml","text/*+xml"}) public class SpringXStreamReaderWriter extends com.xebialabs.xltype.serialization.xstream.XStreamReaderWriter implements org.springframework.context.ApplicationContextAware
  • Field Summary

    Fields inherited from class com.xebialabs.xltype.serialization.xstream.XStreamReaderWriter

    HIERARCHICAL_STREAM_DRIVER
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected com.thoughtworks.xstream.converters.Converter
     
    protected void
     
    readFrom(Class<Object> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream)
     
    void
    setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
     

    Methods inherited from class com.xebialabs.xltype.serialization.xstream.XStreamReaderWriter

    createDataHolder, getConfiguredXStream, getSize, isForRegisteredConverter, isReadable, isWriteable, registerConfigurationItemAliases, registerConverter, writeTo

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SpringXStreamReaderWriter

      public SpringXStreamReaderWriter()
  • Method Details

    • init

      @PostConstruct protected void init()
      Overrides:
      init in class com.xebialabs.xltype.serialization.xstream.XStreamReaderWriter
    • constructConverter

      protected com.thoughtworks.xstream.converters.Converter constructConverter(Class<?> clazz)
      Overrides:
      constructConverter in class com.xebialabs.xltype.serialization.xstream.XStreamReaderWriter
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException
    • readFrom

      public Object readFrom(Class<Object> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream) throws IOException, jakarta.ws.rs.WebApplicationException
      Specified by:
      readFrom in interface jakarta.ws.rs.ext.MessageBodyReader<Object>
      Overrides:
      readFrom in class com.xebialabs.xltype.serialization.xstream.XStreamReaderWriter
      Throws:
      IOException
      jakarta.ws.rs.WebApplicationException