public class XMLWriter extends TextResponseWriter
Modifier and Type | Field and Description |
---|---|
static float |
CURRENT_VERSION |
cal, doIndent, level, req, returnFields, rsp, schema, writer
Constructor and Description |
---|
XMLWriter(Writer writer,
SolrQueryRequest req,
SolrQueryResponse rsp) |
Modifier and Type | Method and Description |
---|---|
void |
writeArray(String name,
Iterator iter) |
void |
writeArray(String name,
Object[] val) |
void |
writeAttr(String name,
String val,
boolean escape) |
void |
writeBool(String name,
String val) |
void |
writeDate(String name,
String val) |
void |
writeDouble(String name,
double val) |
void |
writeDouble(String name,
String val) |
void |
writeEndDocumentList() |
void |
writeFloat(String name,
float val) |
void |
writeFloat(String name,
String val) |
void |
writeInt(String name,
String val) |
void |
writeIterator(String name,
IteratorWriter val) |
void |
writeLong(String name,
String val) |
void |
writeMap(String name,
Map map,
boolean excludeOuter,
boolean isFirstVal) |
void |
writeMap(String name,
MapWriter val) |
void |
writeNamedList(String name,
NamedList val) |
void |
writeNull(String name) |
void |
writeResponse() |
static void |
writeResponse(Writer writer,
SolrQueryRequest req,
SolrQueryResponse rsp) |
void |
writeSolrDocument(String name,
SolrDocument doc,
ReturnFields returnFields,
int idx)
The SolrDocument should already have multivalued fields implemented as
Collections -- this will not rewrite to <arr>
|
void |
writeStartDocumentList(String name,
long start,
int size,
long numFound,
Float maxScore)
Deprecated.
|
void |
writeStartDocumentList(String name,
long start,
int size,
long numFound,
Float maxScore,
Boolean numFoundExact) |
void |
writeStr(String name,
String val,
boolean escape) |
close, decLevel, doIndent, getWriter, incLevel, level, setIndent, setLevel, writeDocuments, writeSolrDocumentList, writeVal
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
indent, indent, writeArray, writeBool, writeBool, writeByteArr, writeDate, writeInt, writeIterator, writeLong, writeMap, writeNumber
public XMLWriter(Writer writer, SolrQueryRequest req, SolrQueryResponse rsp)
public static void writeResponse(Writer writer, SolrQueryRequest req, SolrQueryResponse rsp) throws IOException
IOException
public void writeResponse() throws IOException
IOException
public void writeAttr(String name, String val, boolean escape) throws IOException
IOException
public void writeStartDocumentList(String name, long start, int size, long numFound, Float maxScore, Boolean numFoundExact) throws IOException
writeStartDocumentList
in class TextResponseWriter
IOException
@Deprecated public void writeStartDocumentList(String name, long start, int size, long numFound, Float maxScore) throws IOException
writeStartDocumentList
in class TextResponseWriter
IOException
public void writeSolrDocument(String name, SolrDocument doc, ReturnFields returnFields, int idx) throws IOException
writeSolrDocument
in class TextResponseWriter
IOException
public void writeEndDocumentList() throws IOException
writeEndDocumentList
in class TextResponseWriter
IOException
public void writeNamedList(String name, NamedList val) throws IOException
IOException
public void writeMap(String name, MapWriter val) throws IOException
IOException
public void writeMap(String name, Map map, boolean excludeOuter, boolean isFirstVal) throws IOException
IOException
public void writeArray(String name, Object[] val) throws IOException
IOException
public void writeArray(String name, Iterator iter) throws IOException
IOException
public void writeIterator(String name, IteratorWriter val) throws IOException
IOException
public void writeNull(String name) throws IOException
IOException
public void writeStr(String name, String val, boolean escape) throws IOException
IOException
public void writeInt(String name, String val) throws IOException
IOException
public void writeLong(String name, String val) throws IOException
IOException
public void writeBool(String name, String val) throws IOException
IOException
public void writeFloat(String name, String val) throws IOException
IOException
public void writeFloat(String name, float val) throws IOException
IOException
public void writeDouble(String name, String val) throws IOException
IOException
public void writeDouble(String name, double val) throws IOException
IOException
public void writeDate(String name, String val) throws IOException
IOException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.