Class ResponseParser
java.lang.Object
org.apache.solr.client.solrj.response.ResponseParser
- Direct Known Subclasses:
InputStreamResponseParser,JacksonDataBindResponseParser,JavaBinResponseParser,JsonMapResponseParser,XMLResponseParser
SolrJ Solr response parser.
- Since:
- solr 1.3
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Collection<String> A well-behaved ResponseParser will return the content-types it supports.abstract StringThe writer type placed onto the request as thewtparam.processResponse(InputStream body, String encoding)
-
Constructor Details
-
ResponseParser
public ResponseParser()
-
-
Method Details
-
getWriterType
The writer type placed onto the request as thewtparam. -
processResponse
public abstract NamedList<Object> processResponse(InputStream body, String encoding) throws IOException - Throws:
IOException
-
getContentTypes
A well-behaved ResponseParser will return the content-types it supports.- Returns:
- the content-type values that this parser is capable of parsing. Never null. Empty means no enforcement.
-