public class XMLResponseParser extends ResponseParser
Modifier and Type | Class and Description |
---|---|
protected static class |
XMLResponseParser.KnownType |
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
log |
Constructor and Description |
---|
XMLResponseParser() |
Modifier and Type | Method and Description |
---|---|
String |
getWriterType() |
NamedList<Object> |
processResponse(InputStream in,
String encoding) |
NamedList<Object> |
processResponse(Reader in) |
protected List<Object> |
readArray(javax.xml.stream.XMLStreamReader parser) |
protected SolrDocument |
readDocument(javax.xml.stream.XMLStreamReader parser) |
protected SolrDocumentList |
readDocuments(javax.xml.stream.XMLStreamReader parser) |
protected NamedList<Object> |
readNamedList(javax.xml.stream.XMLStreamReader parser) |
getVersion
public String getWriterType()
getWriterType
in class ResponseParser
public NamedList<Object> processResponse(Reader in)
processResponse
in class ResponseParser
public NamedList<Object> processResponse(InputStream in, String encoding)
processResponse
in class ResponseParser
protected NamedList<Object> readNamedList(javax.xml.stream.XMLStreamReader parser) throws javax.xml.stream.XMLStreamException
protected List<Object> readArray(javax.xml.stream.XMLStreamReader parser) throws javax.xml.stream.XMLStreamException
protected SolrDocumentList readDocuments(javax.xml.stream.XMLStreamReader parser) throws javax.xml.stream.XMLStreamException
protected SolrDocument readDocument(javax.xml.stream.XMLStreamReader parser) throws javax.xml.stream.XMLStreamException