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 |
---|---|
class |
RequestWriter.LazyContentStream |
Constructor and Description |
---|
RequestWriter() |
Modifier and Type | Method and Description |
---|---|
ContentStream |
getContentStream(UpdateRequest req) |
Collection<ContentStream> |
getContentStreams(SolrRequest req) |
String |
getPath(SolrRequest req) |
String |
getUpdateContentType() |
protected boolean |
isNull(List l) |
protected boolean |
isNull(Map l) |
void |
write(SolrRequest request,
OutputStream os) |
public static final Charset UTF_8
public Collection<ContentStream> getContentStreams(SolrRequest req) throws IOException
IOException
public String getPath(SolrRequest req)
public ContentStream getContentStream(UpdateRequest req) throws IOException
IOException
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-2016 Apache Software Foundation. All Rights Reserved.