Class JSONEngine

  • All Implemented Interfaces:
    Engine

    public class JSONEngine
    extends WebEngine
    • Field Detail

      • patternVariable

        private static final java.util.regex.Pattern patternVariable
      • resultsEntryPath

        private java.lang.String resultsEntryPath
      • rankDivisorPath

        private java.lang.String rankDivisorPath
      • rankDivisor

        private float rankDivisor
    • Constructor Detail

      • JSONEngine

        public JSONEngine​(MetaSearchImpl meta_search,
                          long id,
                          long last_updated,
                          float rank_bias,
                          java.lang.String name,
                          java.lang.String searchURLFormat,
                          java.lang.String timeZone,
                          boolean automaticDateFormat,
                          java.lang.String userDateFormat,
                          java.lang.String resultsEntryPath,
                          FieldMapping[] mappings,
                          boolean needs_auth,
                          java.lang.String auth_method,
                          java.lang.String login_url,
                          java.lang.String[] required_cookies)
      • JSONEngine

        protected JSONEngine​(MetaSearchImpl meta_search,
                             java.util.Map map)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • JSONEngine

        protected JSONEngine​(MetaSearchImpl meta_search,
                             long id,
                             long last_updated,
                             float rank_bias,
                             java.lang.String name,
                             JSONObject map)
                      throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • importFromBEncodedMap

        public static EngineImpl importFromBEncodedMap​(MetaSearchImpl meta_search,
                                                       java.util.Map map)
                                                throws java.io.IOException
        Throws:
        java.io.IOException
      • importFromJSONString

        public static Engine importFromJSONString​(MetaSearchImpl meta_search,
                                                  long id,
                                                  long last_updated,
                                                  float rank_bias,
                                                  java.lang.String name,
                                                  JSONObject map)
                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • exportToBencodedMap

        public java.util.Map exportToBencodedMap()
                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • exportToBencodedMap

        public java.util.Map exportToBencodedMap​(boolean generic)
                                          throws java.io.IOException
        Throws:
        java.io.IOException