Class InputStreamResponseParser
java.lang.Object
org.apache.solr.client.solrj.response.ResponseParser
org.apache.solr.client.solrj.response.InputStreamResponseParser
Simply puts the InputStream into an entry in a NamedList named "stream".
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringconsumeResponseToString(NamedList<Object> response) When using aInputStreamResponseParser, the raw output is available in the response under the keySTREAM_KEY.createInputStreamNamedList(int httpStatus, InputStream inputStream) A well-behaved ResponseParser will return the content-types it supports.The writer type placed onto the request as thewtparam.processResponse(InputStream body, String encoding)
-
Field Details
-
STREAM_KEY
-
HTTP_STATUS_KEY
-
-
Constructor Details
-
InputStreamResponseParser
-
-
Method Details
-
consumeResponseToString
When using aInputStreamResponseParser, the raw output is available in the response under the keySTREAM_KEY.- Throws:
IOException
-
getWriterType
Description copied from class:ResponseParserThe writer type placed onto the request as thewtparam.- Specified by:
getWriterTypein classResponseParser
-
processResponse
- Specified by:
processResponsein classResponseParser- Throws:
IOException
-
getContentTypes
Description copied from class:ResponseParserA well-behaved ResponseParser will return the content-types it supports.- Specified by:
getContentTypesin classResponseParser- Returns:
- the content-type values that this parser is capable of parsing. Never null. Empty means no enforcement.
-
createInputStreamNamedList
-