Package org.apache.solr.jersey
Class MessageBodyWriters.BaseMessageBodyWriter
- java.lang.Object
-
- org.apache.solr.jersey.MessageBodyWriters.BaseMessageBodyWriter
-
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<JacksonReflectMapWriter>
- Direct Known Subclasses:
MessageBodyWriters.CsvMessageBodyWriter
,MessageBodyWriters.JavabinMessageBodyWriter
,MessageBodyWriters.RawMessageBodyWriter
,MessageBodyWriters.XmlMessageBodyWriter
- Enclosing class:
- MessageBodyWriters
public abstract static class MessageBodyWriters.BaseMessageBodyWriter extends Object implements javax.ws.rs.ext.MessageBodyWriter<JacksonReflectMapWriter>
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.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, javax.ws.rs.core.MediaType mediaType)
void
writeTo(JacksonReflectMapWriter reflectMapWriter, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.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, javax.ws.rs.core.MediaType mediaType)
- Specified by:
isWriteable
in interfacejavax.ws.rs.ext.MessageBodyWriter<JacksonReflectMapWriter>
-
writeTo
public void writeTo(JacksonReflectMapWriter reflectMapWriter, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException, javax.ws.rs.WebApplicationException
- Specified by:
writeTo
in interfacejavax.ws.rs.ext.MessageBodyWriter<JacksonReflectMapWriter>
- Throws:
IOException
javax.ws.rs.WebApplicationException
-
-