Class InputStreamResponseParser
- java.lang.Object
-
- org.apache.solr.client.solrj.ResponseParser
-
- org.apache.solr.client.solrj.impl.InputStreamResponseParser
-
public class InputStreamResponseParser extends ResponseParser
Simply puts the InputStream into an entry in a NamedList named "stream".- See Also:
InputStreamResponse
-
-
Field Summary
Fields Modifier and Type Field Description static StringHTTP_STATUS_KEYstatic StringSTREAM_KEY
-
Constructor Summary
Constructors Constructor Description InputStreamResponseParser(String writerType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NamedList<Object>createInputStreamNamedList(int httpStatus, InputStream inputStream)StringgetWriterType()NamedList<Object>processResponse(InputStream body, String encoding)NamedList<Object>processResponse(Reader reader)-
Methods inherited from class org.apache.solr.client.solrj.ResponseParser
getContentType, getContentTypes, getVersion
-
-
-
-
Constructor Detail
-
InputStreamResponseParser
public InputStreamResponseParser(String writerType)
-
-
Method Detail
-
getWriterType
public String getWriterType()
- Specified by:
getWriterTypein classResponseParser
-
processResponse
public NamedList<Object> processResponse(Reader reader)
- Specified by:
processResponsein classResponseParser
-
processResponse
public NamedList<Object> processResponse(InputStream body, String encoding)
- Specified by:
processResponsein classResponseParser
-
createInputStreamNamedList
public static NamedList<Object> createInputStreamNamedList(int httpStatus, InputStream inputStream)
-
-