org.apache.solr.client.solrj

## Class ResponseParser

- java.lang.Object
- - org.apache.solr.client.solrj.ResponseParser

- Direct Known Subclasses:
    BinaryResponseParser, DelegationTokenResponse.JsonMapResponseParser, InputStreamResponseParser, NoOpResponseParser, XMLResponseParser

      public abstract class ResponseParser
      extends Object

  Since:
    solr 1.3

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ResponseParser()`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getContentType()` A well behaved ResponseParser will return its content-type.
    `String` | `getVersion()`
    `abstract String` | `getWriterType()`
    `abstract NamedList<Object>` | `processResponse(InputStream body, String encoding)`
    `abstract NamedList<Object>` | `processResponse(Reader reader)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ResponseParser

          public ResponseParser()

  - ### Method Detail

    - #### getWriterType

          public abstract String getWriterType()

    - #### processResponse

          public abstract NamedList<Object> processResponse(InputStream body,
                                                            String encoding)

    - #### processResponse

          public abstract NamedList<Object> processResponse(Reader reader)

    - #### getContentType

          public String getContentType()

      A well behaved ResponseParser will return its content-type.
      Returns:
        the content-type this parser expects to parse

    - #### getVersion

          public String getVersion()

      Returns:
        the version param passed to solr

Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.