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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected jakarta.ws.rs.container.ResourceContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract QueryResponseWriterabstract StringbooleanisWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) voidwriteTo(Object toWrite, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.ws.rs.ext.MessageBodyWriter
getSize
-
Field Details
-
resourceContext
@Context protected jakarta.ws.rs.container.ResourceContext resourceContext
-
-
Constructor Details
-
BaseMessageBodyWriter
public BaseMessageBodyWriter()
-
-
Method Details
-
createResponseWriter
-
getSupportedMediaType
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
isWriteablein 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:
writeToin interfacejakarta.ws.rs.ext.MessageBodyWriter<Object>- Throws:
IOExceptionjakarta.ws.rs.WebApplicationException
-