Package org.apache.solr.jersey
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 Summary
Fields Modifier and Type Field Description protected jakarta.ws.rs.container.ResourceContext
resourceContext
-
Constructor Summary
Constructors Constructor Description BaseMessageBodyWriter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract QueryResponseWriter
createResponseWriter()
abstract String
getSupportedMediaType()
boolean
isWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
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)
-
-
-
Method Detail
-
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 interfacejakarta.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 interfacejakarta.ws.rs.ext.MessageBodyWriter<Object>
- Throws:
IOException
jakarta.ws.rs.WebApplicationException
-
-