亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? hopspathmatchesregexpdeciderule.html

?? 網絡爬蟲開源代碼
?? HTML
字號:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta http-equiv="content-type" content="text/html; charset=UTF-8" /><title>HopsPathMatchesRegExpDecideRule xref</title><link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" /></head><body><div id="overview"><a href="../../../../../apidocs/org/archive/crawler/deciderules/HopsPathMatchesRegExpDecideRule.html">View Javadoc</a></div><pre><a name="1" href="#1">1</a>   <em class="comment">/*<em class="comment"> HopsPathMatchesRegExpDecideRule</em></em><a name="2" href="#2">2</a>   <em class="comment">*</em><a name="3" href="#3">3</a>   <em class="comment">* $Id: HopsPathMatchesRegExpDecideRule.java 4649 2006-09-25 17:16:55Z paul_jack $</em><a name="4" href="#4">4</a>   <em class="comment">*</em><a name="5" href="#5">5</a>   <em class="comment">* Created on June 23, 2005</em><a name="6" href="#6">6</a>   <em class="comment">*</em><a name="7" href="#7">7</a>   <em class="comment">* Copyright (C) 2005 Internet Archive.</em><a name="8" href="#8">8</a>   <em class="comment">*</em><a name="9" href="#9">9</a>   <em class="comment">* This file is part of the Heritrix web crawler (crawler.archive.org).</em><a name="10" href="#10">10</a>  <em class="comment">*</em><a name="11" href="#11">11</a>  <em class="comment">* Heritrix is free software; you can redistribute it and/or modify</em><a name="12" href="#12">12</a>  <em class="comment">* it under the terms of the GNU Lesser Public License as published by</em><a name="13" href="#13">13</a>  <em class="comment">* the Free Software Foundation; either version 2.1 of the License, or</em><a name="14" href="#14">14</a>  <em class="comment">* any later version.</em><a name="15" href="#15">15</a>  <em class="comment">*</em><a name="16" href="#16">16</a>  <em class="comment">* Heritrix is distributed in the hope that it will be useful,</em><a name="17" href="#17">17</a>  <em class="comment">* but WITHOUT ANY WARRANTY; without even the implied warranty of</em><a name="18" href="#18">18</a>  <em class="comment">* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</em><a name="19" href="#19">19</a>  <em class="comment">* GNU Lesser Public License for more details.</em><a name="20" href="#20">20</a>  <em class="comment">*</em><a name="21" href="#21">21</a>  <em class="comment">* You should have received a copy of the GNU Lesser Public License</em><a name="22" href="#22">22</a>  <em class="comment">* along with Heritrix; if not, write to the Free Software</em><a name="23" href="#23">23</a>  <em class="comment">* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</em><a name="24" href="#24">24</a>  <em class="comment">*/</em><a name="25" href="#25">25</a>  <strong>package</strong> <a href="../../../../org/archive/crawler/deciderules/package-summary.html">org.archive.crawler.deciderules</a>;<a name="26" href="#26">26</a>  <a name="27" href="#27">27</a>  <strong>import</strong> java.util.logging.Level;<a name="28" href="#28">28</a>  <strong>import</strong> java.util.logging.Logger;<a name="29" href="#29">29</a>  <a name="30" href="#30">30</a>  <strong>import</strong> javax.management.AttributeNotFoundException;<a name="31" href="#31">31</a>  <a name="32" href="#32">32</a>  <strong>import</strong> org.archive.crawler.datamodel.CandidateURI;<a name="33" href="#33">33</a>  <strong>import</strong> org.archive.crawler.settings.SimpleType;<a name="34" href="#34">34</a>  <strong>import</strong> org.archive.util.TextUtils;<a name="35" href="#35">35</a>  <a name="36" href="#36">36</a>  <em>/**<em>*</em></em><a name="37" href="#37">37</a>  <em> * Rule applies configured decision to any CrawlURIs whose 'hops-path'</em><a name="38" href="#38">38</a>  <em> * (string like "LLXE" etc.) matches the supplied regexp.</em><a name="39" href="#39">39</a>  <em> *</em><a name="40" href="#40">40</a>  <em> * @author gojomo</em><a name="41" href="#41">41</a>  <em> */</em><a name="42" href="#42">42</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../org/archive/crawler/deciderules/HopsPathMatchesRegExpDecideRule.html">HopsPathMatchesRegExpDecideRule</a> <strong>extends</strong> <a href="../../../../org/archive/crawler/deciderules/PredicatedDecideRule.html">PredicatedDecideRule</a> {<a name="43" href="#43">43</a>  <a name="44" href="#44">44</a>      <strong>private</strong> <strong>static</strong> <strong>final</strong> <strong>long</strong> serialVersionUID = -8881013912393934053L;<a name="45" href="#45">45</a>  <a name="46" href="#46">46</a>      <strong>private</strong> <strong>static</strong> <strong>final</strong> Logger logger =<a name="47" href="#47">47</a>          Logger.getLogger(HopsPathMatchesRegExpDecideRule.<strong>class</strong>.getName());<a name="48" href="#48">48</a>      <a name="49" href="#49">49</a>      <strong>public</strong> <strong>static</strong> <strong>final</strong> String ATTR_REGEXP = <span class="string">"regexp"</span>;<a name="50" href="#50">50</a>  <a name="51" href="#51">51</a>      <em>/**<em>*</em></em><a name="52" href="#52">52</a>  <em>     * Usual constructor. </em><a name="53" href="#53">53</a>  <em>     * @param name</em><a name="54" href="#54">54</a>  <em>     */</em><a name="55" href="#55">55</a>      <strong>public</strong> <a href="../../../../org/archive/crawler/deciderules/HopsPathMatchesRegExpDecideRule.html">HopsPathMatchesRegExpDecideRule</a>(String name) {<a name="56" href="#56">56</a>          <strong>super</strong>(name);<a name="57" href="#57">57</a>          setDescription(<span class="string">"HopsPathMatchesRegExpDecideRule. Applies the "</span> +<a name="58" href="#58">58</a>                  <span class="string">"configured decision to URIs whose hops-path (string with "</span> +<a name="59" href="#59">59</a>                  <span class="string">"L E R X P etc) matches the supplied regular expression."</span>);<a name="60" href="#60">60</a>          addElementToDefinition(<strong>new</strong> <a href="../../../../org/archive/crawler/settings/SimpleType.html">SimpleType</a>(ATTR_REGEXP, <span class="string">"Java regular"</span> +<a name="61" href="#61">61</a>              <span class="string">"expression to match."</span>, <span class="string">""</span>));<a name="62" href="#62">62</a>      }<a name="63" href="#63">63</a>  <a name="64" href="#64">64</a>      <em>/**<em>*</em></em><a name="65" href="#65">65</a>  <em>     * Evaluate whether given object (if CandidateURI) has hops-path</em><a name="66" href="#66">66</a>  <em>     * matching configured regexp</em><a name="67" href="#67">67</a>  <em>     * </em><a name="68" href="#68">68</a>  <em>     * @param object</em><a name="69" href="#69">69</a>  <em>     * @return true if regexp is matched</em><a name="70" href="#70">70</a>  <em>     */</em><a name="71" href="#71">71</a>      <strong>protected</strong> <strong>boolean</strong> evaluate(Object object) {<a name="72" href="#72">72</a>          <strong>try</strong> {<a name="73" href="#73">73</a>              String regexp = getRegexp(object);<a name="74" href="#74">74</a>              String str = ((CandidateURI)object).getPathFromSeed();<a name="75" href="#75">75</a>              <strong>boolean</strong> result = (regexp == <strong>null</strong>)?<a name="76" href="#76">76</a>                      false: TextUtils.matches(regexp, str);<a name="77" href="#77">77</a>              <strong>if</strong> (logger.isLoggable(Level.FINE)) {<a name="78" href="#78">78</a>                  logger.fine(<span class="string">"Tested '"</span> + str + <span class="string">"' match with regex '"</span> +<a name="79" href="#79">79</a>                          regexp + <span class="string">" and result was "</span> + result);<a name="80" href="#80">80</a>              }<a name="81" href="#81">81</a>              <strong>return</strong> result;<a name="82" href="#82">82</a>          } <strong>catch</strong> (ClassCastException e) {<a name="83" href="#83">83</a>              <em class="comment">// if not CrawlURI, always disregard</em><a name="84" href="#84">84</a>              <strong>return</strong> false; <a name="85" href="#85">85</a>          }<a name="86" href="#86">86</a>      }<a name="87" href="#87">87</a>      <a name="88" href="#88">88</a>      <em>/**<em>* </em></em><a name="89" href="#89">89</a>  <em>     * Get the regular expression string to match the URI against.</em><a name="90" href="#90">90</a>  <em>     *</em><a name="91" href="#91">91</a>  <em>     * @param o the object for which the regular expression should be</em><a name="92" href="#92">92</a>  <em>     *          matched against.</em><a name="93" href="#93">93</a>  <em>     * @return the regular expression to match against.</em><a name="94" href="#94">94</a>  <em>     */</em><a name="95" href="#95">95</a>      <strong>protected</strong> String getRegexp(Object o) {<a name="96" href="#96">96</a>          <strong>try</strong> {<a name="97" href="#97">97</a>              <strong>return</strong> (String) getAttribute(o, ATTR_REGEXP);<a name="98" href="#98">98</a>          } <strong>catch</strong> (AttributeNotFoundException e) {<a name="99" href="#99">99</a>              logger.severe(e.getMessage());<a name="100" href="#100">100</a>             <strong>return</strong> <strong>null</strong>;  <em class="comment">// Basically the filter is inactive if this occurs.</em><a name="101" href="#101">101</a>         }<a name="102" href="#102">102</a>     }<a name="103" href="#103">103</a> }</pre><hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body></html>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
www.久久精品| 国产成人精品一区二| 一本到三区不卡视频| 中文字幕一区二区三区四区不卡| 99久久精品情趣| 国产精品福利一区| 在线视频国内自拍亚洲视频| 天天综合色天天综合| 欧美成人综合网站| 成人一道本在线| 亚洲精品videosex极品| 91精品免费观看| 国产精品一二三区| 日韩毛片高清在线播放| 欧美色手机在线观看| 日本中文一区二区三区| 久久新电视剧免费观看| 9i在线看片成人免费| 亚洲成人第一页| 久久久亚洲精品石原莉奈| 91一区二区在线| 日本不卡一二三| 欧美国产97人人爽人人喊| 欧洲亚洲精品在线| 韩国精品一区二区| 亚洲欧洲www| 日韩欧美在线观看一区二区三区| 国产精品小仙女| 亚洲一区在线视频| 久久久久久99精品| 欧美日韩精品三区| 国产成人午夜精品5599 | 日本午夜一本久久久综合| 精品国产人成亚洲区| 色悠悠久久综合| 精品一区二区综合| 亚洲主播在线播放| 国产日韩欧美a| 欧美精品v日韩精品v韩国精品v| 国产91精品一区二区麻豆亚洲| 亚洲电影一级黄| 国产精品情趣视频| 欧美tickling挠脚心丨vk| 91免费版pro下载短视频| 久久97超碰色| 亚洲一区二区三区在线| 亚洲国产精品二十页| 欧美xxxxxxxx| 欧美欧美午夜aⅴ在线观看| 成人ar影院免费观看视频| 久久精品国产精品亚洲精品| 亚洲女与黑人做爰| 国产欧美精品一区二区色综合| 91精品在线观看入口| 色综合久久中文综合久久牛| 粉嫩av一区二区三区在线播放 | 国产精品欧美久久久久一区二区| 欧美激情综合五月色丁香小说| 欧美日韩一二三区| 欧美怡红院视频| 91麻豆成人久久精品二区三区| 国产伦精一区二区三区| 日本欧美大码aⅴ在线播放| 亚洲综合一二区| 最新中文字幕一区二区三区| 日本一区免费视频| 国产欧美综合色| 国产夜色精品一区二区av| 日韩欧美激情四射| 日韩女优av电影| 日韩精品一区二区三区四区视频| 91麻豆精品国产91久久久使用方法| 欧美在线视频你懂得| 色综合久久88色综合天天免费| av资源站一区| 99re成人在线| 99国产精品国产精品久久| 成人av一区二区三区| 成人avav影音| 色婷婷综合久久久中文一区二区| k8久久久一区二区三区| 91麻豆精品在线观看| 91在线精品一区二区三区| 91麻豆免费看片| 91国偷自产一区二区开放时间 | 蜜桃av噜噜一区二区三区小说| 免费成人av在线播放| 美女精品自拍一二三四| 精品制服美女丁香| 国产一区二区三区视频在线播放| 国内精品在线播放| 不卡视频一二三四| 欧美在线免费播放| 欧美精品视频www在线观看| 欧美一级片免费看| 国产女人18毛片水真多成人如厕 | 日韩一区二区三区四区| 久久一留热品黄| 一区二区中文视频| 五月婷婷激情综合网| 极品美女销魂一区二区三区免费 | 轻轻草成人在线| 国内精品伊人久久久久av一坑| 成人伦理片在线| 欧美日韩一区二区三区四区五区 | 丁香六月综合激情| 在线视频欧美精品| 精品日产卡一卡二卡麻豆| 久久久精品影视| 亚洲影视资源网| 国模冰冰炮一区二区| 91同城在线观看| 91麻豆精品国产91久久久久| 久久久久久久精| 亚洲动漫第一页| 国产一区二区导航在线播放| 91麻豆成人久久精品二区三区| 555www色欧美视频| 国产精品污污网站在线观看| 亚洲高清不卡在线| 成人永久看片免费视频天堂| 欧美三电影在线| 久久久99久久| 五月婷婷另类国产| 99精品国产热久久91蜜凸| 日韩欧美成人一区二区| 亚洲免费三区一区二区| 久久精品久久久精品美女| 91色综合久久久久婷婷| 欧美一级久久久久久久大片| 中文字幕亚洲一区二区va在线| 麻豆91免费看| 欧美日韩国产乱码电影| 亚洲视频在线观看三级| 精品夜夜嗨av一区二区三区| 欧美日韩一二区| 综合色中文字幕| 国产成人精品亚洲777人妖| 91精品国产综合久久精品| 亚洲毛片av在线| 成人app软件下载大全免费| 日韩一区二区高清| 亚洲成av人片在线观看| 一本色道亚洲精品aⅴ| 久久久久久久久久久久久女国产乱 | 丝袜亚洲另类欧美综合| 91蝌蚪porny| 国产精品免费网站在线观看| 狠狠色2019综合网| 91精品国产综合久久精品| 亚洲国产综合色| 欧洲亚洲精品在线| 亚洲激情中文1区| 色婷婷综合视频在线观看| 国产精品久久久久久久久动漫| 国产美女主播视频一区| 精品av久久707| 日韩av中文字幕一区二区| 欧美精品成人一区二区三区四区| 亚洲综合色成人| 在线观看av不卡| 亚洲香肠在线观看| 在线观看日产精品| 一区av在线播放| 欧美性猛交xxxxxx富婆| 亚洲国产成人av| 欧美乱妇23p| 青青草原综合久久大伊人精品| 91麻豆精品国产91久久久久久| 亚洲不卡在线观看| 日韩一区二区免费电影| 激情综合亚洲精品| 久久你懂得1024| 国产999精品久久久久久| 中文久久乱码一区二区| 成人免费高清在线观看| 亚洲色图欧美在线| 欧美亚男人的天堂| 秋霞av亚洲一区二区三| 26uuu精品一区二区在线观看| 国产在线不卡一区| 国产欧美精品区一区二区三区 | 亚洲精品免费一二三区| 欧美网站一区二区| 蜜臀精品一区二区三区在线观看| 欧美一区二区三区电影| 极品少妇一区二区| 国产精品福利一区| 欧美日韩综合在线| 精品综合久久久久久8888| 欧美国产精品久久| 91福利国产成人精品照片| 丝袜诱惑亚洲看片 | 国产欧美日韩另类视频免费观看 | 亚洲综合免费观看高清完整版 | **网站欧美大片在线观看| 欧洲在线/亚洲| 精品亚洲国产成人av制服丝袜| 国产欧美精品一区二区色综合| 91麻豆国产福利在线观看|