Class MessageBodyWriters.BaseMessageBodyWriter

java.lang.Object
org.apache.solr.jersey.MessageBodyWriters.BaseMessageBodyWriter
All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<Object>
Direct Known Subclasses:
MessageBodyWriters.CsvMessageBodyWriter, MessageBodyWriters.JavabinMessageBodyWriter, MessageBodyWriters.RawMessageBodyWriter, MessageBodyWriters.XmlMessageBodyWriter
Enclosing class:
MessageBodyWriters

public abstract static class MessageBodyWriters.BaseMessageBodyWriter extends Object implements jakarta.ws.rs.ext.MessageBodyWriter<Object>
  • Field Details

    • resourceContext

      @Context protected jakarta.ws.rs.container.ResourceContext resourceContext
  • Constructor Details

    • BaseMessageBodyWriter

      public BaseMessageBodyWriter()
  • Method Details

    • createResponseWriter

      public abstract QueryResponseWriter createResponseWriter()
    • getSupportedMediaType

      public abstract String getSupportedMediaType()
    • isWriteable

      public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
      Specified by:
      isWriteable in interface jakarta.ws.rs.ext.MessageBodyWriter<Object>
    • writeTo

      public void writeTo(Object toWrite, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException, jakarta.ws.rs.WebApplicationException
      Specified by:
      writeTo in interface jakarta.ws.rs.ext.MessageBodyWriter<Object>
      Throws:
      IOException
      jakarta.ws.rs.WebApplicationException