public class RequestWriter extends Object
A subclass can override the methods in this class to supply a custom format in which a request can be sent.
Modifier and Type | Class and Description |
---|---|
static interface |
RequestWriter.ContentWriter |
static class |
RequestWriter.StringPayloadContentWriter |
Constructor and Description |
---|
RequestWriter() |
Modifier and Type | Method and Description |
---|---|
Collection<ContentStream> |
getContentStreams(SolrRequest req) |
RequestWriter.ContentWriter |
getContentWriter(SolrRequest req)
Use this to do a push writing instead of pull.
|
String |
getPath(SolrRequest req) |
String |
getUpdateContentType() |
protected boolean |
isEmpty(UpdateRequest updateRequest) |
protected boolean |
isNull(List l) |
protected boolean |
isNull(Map l) |
void |
write(SolrRequest request,
OutputStream os) |
public RequestWriter.ContentWriter getContentWriter(SolrRequest req)
getContentStreams(SolrRequest)
is
invoked to do a pull write.public Collection<ContentStream> getContentStreams(SolrRequest req) throws IOException
IOException
protected boolean isEmpty(UpdateRequest updateRequest)
public String getPath(SolrRequest req)
public void write(SolrRequest request, OutputStream os) throws IOException
IOException
public String getUpdateContentType()
protected boolean isNull(List l)
protected boolean isNull(Map l)
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.