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.ObjectMapperDEFAULT_MAPPER
-
Constructor Summary
Constructors Constructor Description JacksonContentWriter(String contentType, Object toWrite)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContentType()voidwrite(OutputStream os)
-
-
-
Method Detail
-
write
public void write(OutputStream os) throws IOException
- Specified by:
writein interfaceRequestWriter.ContentWriter- Throws:
IOException
-
getContentType
public String getContentType()
- Specified by:
getContentTypein interfaceRequestWriter.ContentWriter
-
-