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.
| 限定符和类型 | 类和说明 |
|---|---|
static interface |
RequestWriter.ContentWriter |
static class |
RequestWriter.StringPayloadContentWriter |
| 构造器和说明 |
|---|
RequestWriter() |
| 限定符和类型 | 方法和说明 |
|---|---|
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.@Deprecated public Collection<ContentStream> getContentStreams(SolrRequest req) throws IOException
getContentWriter(SolrRequest).IOExceptionprotected boolean isEmpty(UpdateRequest updateRequest)
public String getPath(SolrRequest req)
public void write(SolrRequest request, OutputStream os) throws IOException
IOExceptionpublic String getUpdateContentType()
protected boolean isNull(List l)
protected boolean isNull(Map l)
Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.