Class JSONAPIResultFactory


  • public class JSONAPIResultFactory
    extends java.lang.Object
    JSON API Results factory SOLR JSON responses are parsed according to required Action, Command or Handler
    Since:
    6.2
    Author:
    aborroy
    • Constructor Detail

      • JSONAPIResultFactory

        public JSONAPIResultFactory()
    • Method Detail

      • buildActionResult

        public static JSONAPIResult buildActionResult​(JSONAPIResultFactory.ACTION action,
                                                      org.json.JSONObject json)
        Build a JSON Parser Result object according to required SOLR Action
        Parameters:
        action - SOLR Action invoked
        json - Result in JSON of the SOLR Action invoked
        Returns:
        Throws:
        org.json.JSONException