public class XMLResponseParser extends ResponseParser
Modifier and Type | Class and Description |
---|---|
protected static class |
XMLResponseParser.KnownType |
Modifier and Type | Field and Description |
---|---|
static String |
XML_CONTENT_TYPE |
Constructor and Description |
---|
XMLResponseParser() |
Modifier and Type | Method and Description |
---|---|
String |
getContentType()
A well behaved ResponseParser will return its content-type.
|
String |
getWriterType() |
NamedList<Object> |
processResponse(InputStream in,
String encoding) |
NamedList<Object> |
processResponse(Reader in) |
protected List<Object> |
readArray(XMLStreamReader parser) |
protected SolrDocument |
readDocument(XMLStreamReader parser) |
protected SolrDocumentList |
readDocuments(XMLStreamReader parser) |
protected NamedList<Object> |
readNamedList(XMLStreamReader parser) |
getVersion
public static final String XML_CONTENT_TYPE
public String getWriterType()
getWriterType
in class ResponseParser
public String getContentType()
ResponseParser
getContentType
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(XMLStreamReader parser) throws XMLStreamException
XMLStreamException
protected List<Object> readArray(XMLStreamReader parser) throws XMLStreamException
XMLStreamException
protected SolrDocumentList readDocuments(XMLStreamReader parser) throws XMLStreamException
XMLStreamException
protected SolrDocument readDocument(XMLStreamReader parser) throws XMLStreamException
XMLStreamException
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.