Class RegexEngine

  • All Implemented Interfaces:
    Engine

    public class RegexEngine
    extends WebEngine
    • Field Detail

      • patternVariable

        static final java.util.regex.Pattern patternVariable
      • pattern_str

        private java.lang.String pattern_str
      • patterns

        java.util.regex.Pattern[] patterns
    • Constructor Detail

      • RegexEngine

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

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

        protected RegexEngine​(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
      • init

        protected void init​(java.lang.String resultPattern)