Package org.apache.solr.client.solrj
Class JacksonContentWriter
- java.lang.Object
-
- org.apache.solr.client.solrj.JacksonContentWriter
-
- All Implemented Interfaces:
RequestWriter.ContentWriter
public class JacksonContentWriter extends Object implements RequestWriter.ContentWriter
-
-
Field Summary
Fields Modifier and Type Field Description static com.fasterxml.jackson.databind.ObjectMapper
DEFAULT_MAPPER
-
Constructor Summary
Constructors Constructor Description JacksonContentWriter(String contentType, Object toWrite)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getContentType()
void
write(OutputStream os)
-
-
-
Method Detail
-
write
public void write(OutputStream os) throws IOException
- Specified by:
write
in interfaceRequestWriter.ContentWriter
- Throws:
IOException
-
getContentType
public String getContentType()
- Specified by:
getContentType
in interfaceRequestWriter.ContentWriter
-
-