Class RequestWriter
- java.lang.Object
- 
- org.apache.solr.client.solrj.request.RequestWriter
 
- 
- Direct Known Subclasses:
- BinaryRequestWriter
 
 public class RequestWriter extends Object A RequestWriter is used to write requests to Solr.A subclass can override the methods in this class to supply a custom format in which a request can be sent. - Since:
- solr 1.4
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static interfaceRequestWriter.ContentWriterstatic classRequestWriter.StringPayloadContentWriter
 - 
Constructor SummaryConstructors Constructor Description RequestWriter()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Collection<ContentStream>getContentStreams(SolrRequest req)Deprecated.RequestWriter.ContentWritergetContentWriter(SolrRequest req)Use this to do a push writing instead of pull.StringgetPath(SolrRequest req)StringgetUpdateContentType()protected booleanisEmpty(UpdateRequest updateRequest)protected booleanisNull(List l)protected booleanisNull(Map l)voidwrite(SolrRequest request, OutputStream os)
 
- 
- 
- 
Method Detail- 
getContentWriterpublic RequestWriter.ContentWriter getContentWriter(SolrRequest req) Use this to do a push writing instead of pull. If this method returns nullgetContentStreams(SolrRequest)is invoked to do a pull write.
 - 
getContentStreams@Deprecated public Collection<ContentStream> getContentStreams(SolrRequest req) throws IOException Deprecated.- Throws:
- IOException
 
 - 
isEmptyprotected boolean isEmpty(UpdateRequest updateRequest) 
 - 
getPathpublic String getPath(SolrRequest req) 
 - 
writepublic void write(SolrRequest request, OutputStream os) throws IOException - Throws:
- IOException
 
 - 
getUpdateContentTypepublic String getUpdateContentType() 
 - 
isNullprotected boolean isNull(List l) 
 - 
isNullprotected boolean isNull(Map l) 
 
- 
 
-