Class ServerJaxbMessageBodyWriter

  • All Implemented Interfaces:
    javax.ws.rs.ext.MessageBodyWriter<Object>, org.jboss.resteasy.reactive.common.types.AllWriteableMarker, org.jboss.resteasy.reactive.server.spi.ServerMessageBodyWriter<Object>

    public class ServerJaxbMessageBodyWriter
    extends org.jboss.resteasy.reactive.server.spi.ServerMessageBodyWriter.AllWriteableMessageBodyWriter
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.jboss.resteasy.reactive.server.spi.ServerMessageBodyWriter

        org.jboss.resteasy.reactive.server.spi.ServerMessageBodyWriter.AllWriteableMessageBodyWriter
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) javax.xml.bind.Marshaller marshaller  
    • Field Detail

      • marshaller

        @Inject
        javax.xml.bind.Marshaller marshaller
    • Constructor Detail

      • ServerJaxbMessageBodyWriter

        public ServerJaxbMessageBodyWriter()
    • Method Detail

      • writeTo

        public void writeTo​(Object o,
                            Class<?> type,
                            Type genericType,
                            Annotation[] annotations,
                            javax.ws.rs.core.MediaType mediaType,
                            javax.ws.rs.core.MultivaluedMap<String,​Object> httpHeaders,
                            OutputStream entityStream)
                     throws javax.ws.rs.WebApplicationException
        Throws:
        javax.ws.rs.WebApplicationException
      • writeResponse

        public void writeResponse​(Object o,
                                  Type genericType,
                                  org.jboss.resteasy.reactive.server.spi.ServerRequestContext context)
                           throws javax.ws.rs.WebApplicationException,
                                  IOException
        Throws:
        javax.ws.rs.WebApplicationException
        IOException