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)  | 
getVersionpublic static final String XML_CONTENT_TYPE
public String getWriterType()
getWriterType in class ResponseParserpublic String getContentType()
ResponseParsergetContentType in class ResponseParserpublic NamedList<Object> processResponse(Reader in)
processResponse in class ResponseParserpublic NamedList<Object> processResponse(InputStream in, String encoding)
processResponse in class ResponseParserprotected NamedList<Object> readNamedList(XMLStreamReader parser) throws XMLStreamException
XMLStreamExceptionprotected List<Object> readArray(XMLStreamReader parser) throws XMLStreamException
XMLStreamExceptionprotected SolrDocumentList readDocuments(XMLStreamReader parser) throws XMLStreamException
XMLStreamExceptionprotected SolrDocument readDocument(XMLStreamReader parser) throws XMLStreamException
XMLStreamExceptionCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.