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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? fetchhttp.html

?? 網(wǎng)絡(luò)爬蟲開源代碼
?? HTML
?? 第 1 頁 / 共 5 頁
字號:
<a name="508" href="#508">508</a>             <em class="comment">// For weird windows-only ArrayIndex exceptions in native</em><a name="509" href="#509">509</a>             <em class="comment">// code... see</em><a name="510" href="#510">510</a>             <em class="comment">// http://forum.java.sun.com/thread.jsp?forum=11&amp;thread=378356</em><a name="511" href="#511">511</a>             <em class="comment">// treating as if it were an IOException</em><a name="512" href="#512">512</a>             failedExecuteCleanup(method, curi, e);<a name="513" href="#513">513</a>             <strong>return</strong>;<a name="514" href="#514">514</a>         }<a name="515" href="#515">515</a>         <a name="516" href="#516">516</a>         <em class="comment">// set softMax on bytes to get (if implied by content-length) </em><a name="517" href="#517">517</a>         <strong>long</strong> softMax = method.getResponseContentLength();<a name="518" href="#518">518</a> <a name="519" href="#519">519</a>         <strong>try</strong> {<a name="520" href="#520">520</a>             <strong>if</strong> (!method.isAborted()) {<a name="521" href="#521">521</a>                 <em class="comment">// Force read-to-end, so that any socket hangs occur here,</em><a name="522" href="#522">522</a>                 <em class="comment">// not in later modules.</em><a name="523" href="#523">523</a>                 rec.getRecordedInput().readFullyOrUntil(softMax);<a name="524" href="#524">524</a>             }<a name="525" href="#525">525</a>         } <strong>catch</strong> (RecorderTimeoutException ex) {<a name="526" href="#526">526</a>             doAbort(curi, method, TIMER_TRUNC);<a name="527" href="#527">527</a>         } <strong>catch</strong> (RecorderLengthExceededException ex) {<a name="528" href="#528">528</a>             doAbort(curi, method, LENGTH_TRUNC);<a name="529" href="#529">529</a>         } <strong>catch</strong> (IOException e) {<a name="530" href="#530">530</a>             cleanup(curi, e, <span class="string">"readFully"</span>, S_CONNECT_LOST);<a name="531" href="#531">531</a>             <strong>return</strong>;<a name="532" href="#532">532</a>         } <strong>catch</strong> (ArrayIndexOutOfBoundsException e) {<a name="533" href="#533">533</a>             <em class="comment">// For weird windows-only ArrayIndex exceptions from native code</em><a name="534" href="#534">534</a>             <em class="comment">// see http://forum.java.sun.com/thread.jsp?forum=11&amp;thread=378356</em><a name="535" href="#535">535</a>             <em class="comment">// treating as if it were an IOException</em><a name="536" href="#536">536</a>             cleanup(curi, e, <span class="string">"readFully"</span>, S_CONNECT_LOST);<a name="537" href="#537">537</a>             <strong>return</strong>;<a name="538" href="#538">538</a>         } <strong>finally</strong> {<a name="539" href="#539">539</a>             <em class="comment">// ensure recording has stopped</em><a name="540" href="#540">540</a>             rec.closeRecorders();<a name="541" href="#541">541</a>             <strong>if</strong> (!method.isAborted()) {<a name="542" href="#542">542</a>                 method.releaseConnection();<a name="543" href="#543">543</a>             }<a name="544" href="#544">544</a>             <em class="comment">// Note completion time</em><a name="545" href="#545">545</a>             curi.putLong(A_FETCH_COMPLETED_TIME, System.currentTimeMillis());<a name="546" href="#546">546</a>             <em class="comment">// Set the response charset into the HttpRecord if available.</em><a name="547" href="#547">547</a>             setCharacterEncoding(rec, method);<a name="548" href="#548">548</a>             setSizes(curi, rec);<a name="549" href="#549">549</a>         }<a name="550" href="#550">550</a>  <a name="551" href="#551">551</a>         <strong>if</strong> (digestContent) {<a name="552" href="#552">552</a>             curi.setContentDigest(algorithm,<a name="553" href="#553">553</a>                 rec.getRecordedInput().getDigestValue());<a name="554" href="#554">554</a>         }<a name="555" href="#555">555</a>         <strong>if</strong> (logger.isLoggable(Level.INFO)) {<a name="556" href="#556">556</a>             logger.info((curi.isPost()? <span class="string">"POST"</span>: <span class="string">"GET"</span>) + <span class="string">" "</span> +<a name="557" href="#557">557</a>                 curi.getUURI().toString() + <span class="string">" "</span> + method.getStatusCode() +<a name="558" href="#558">558</a>                 <span class="string">" "</span> + rec.getRecordedInput().getSize() + <span class="string">" "</span> +<a name="559" href="#559">559</a>                 curi.getContentType());<a name="560" href="#560">560</a>         }<a name="561" href="#561">561</a> <a name="562" href="#562">562</a>         <strong>if</strong> (curi.isSuccess() &amp;&amp; addedCredentials) {<a name="563" href="#563">563</a>             <em class="comment">// Promote the credentials from the CrawlURI to the CrawlServer</em><a name="564" href="#564">564</a>             <em class="comment">// so they are available for all subsequent CrawlURIs on this</em><a name="565" href="#565">565</a>             <em class="comment">// server.</em><a name="566" href="#566">566</a>             promoteCredentials(curi);<a name="567" href="#567">567</a>             <strong>if</strong> (logger.isLoggable(Level.FINE)) {<a name="568" href="#568">568</a>                 <em class="comment">// Print out the cookie.  Might help with the debugging.</em><a name="569" href="#569">569</a>                 Header setCookie = method.getResponseHeader(<span class="string">"set-cookie"</span>);<a name="570" href="#570">570</a>                 <strong>if</strong> (setCookie != <strong>null</strong>) {<a name="571" href="#571">571</a>                     logger.fine(setCookie.toString().trim());<a name="572" href="#572">572</a>                 }<a name="573" href="#573">573</a>             }<a name="574" href="#574">574</a>         } <strong>else</strong> <strong>if</strong> (method.getStatusCode() == HttpStatus.SC_UNAUTHORIZED) {<a name="575" href="#575">575</a>             <em class="comment">// 401 is not 'success'.</em><a name="576" href="#576">576</a>             handle401(method, curi);<a name="577" href="#577">577</a>         }<a name="578" href="#578">578</a>         <a name="579" href="#579">579</a>         <strong>if</strong> (rec.getRecordedInput().isOpen()) {<a name="580" href="#580">580</a>             logger.severe(curi.toString() + <span class="string">" RIS still open. Should have"</span> +<a name="581" href="#581">581</a>                 <span class="string">" been closed by method release: "</span> +<a name="582" href="#582">582</a>                 Thread.currentThread().getName());<a name="583" href="#583">583</a>             <strong>try</strong> {<a name="584" href="#584">584</a>                 rec.getRecordedInput().close();<a name="585" href="#585">585</a>             } <strong>catch</strong> (IOException e) {<a name="586" href="#586">586</a>                 logger.log(Level.SEVERE,<span class="string">"second-chance RIS close failed"</span>,e);<a name="587" href="#587">587</a>             }<a name="588" href="#588">588</a>         }<a name="589" href="#589">589</a>     }<a name="590" href="#590">590</a> <a name="591" href="#591">591</a>     <em>/**<em>*</em></em><a name="592" href="#592">592</a> <em>     * Update CrawlURI internal sizes based on current transaction (and</em><a name="593" href="#593">593</a> <em>     * in the case of 304s, history) </em><a name="594" href="#594">594</a> <em>     * </em><a name="595" href="#595">595</a> <em>     * @param curi CrawlURI</em><a name="596" href="#596">596</a> <em>     * @param rec HttpRecorder</em><a name="597" href="#597">597</a> <em>     */</em><a name="598" href="#598">598</a>     <strong>protected</strong> <strong>void</strong> setSizes(<strong>final</strong> <a href="../../../../org/archive/crawler/datamodel/CrawlURI.html">CrawlURI</a> curi, <a href="../../../../org/archive/util/HttpRecorder.html">HttpRecorder</a> rec) {<a name="599" href="#599">599</a>         <em class="comment">// set reporting size</em><a name="600" href="#600">600</a>         curi.setContentSize(rec.getRecordedInput().getSize());<a name="601" href="#601">601</a>         <em class="comment">// special handling for 304-not modified</em><a name="602" href="#602">602</a>         <strong>if</strong> (curi.getFetchStatus() == HttpStatus.SC_NOT_MODIFIED<a name="603" href="#603">603</a>                 &amp;&amp; curi.containsKey(A_FETCH_HISTORY)) {<a name="604" href="#604">604</a>             <a href="../../../../st/ata/util/AList.html">AList</a> history[] = curi.getAList().getAListArray(A_FETCH_HISTORY);<a name="605" href="#605">605</a>             <strong>if</strong> (history[0] != <strong>null</strong><a name="606" href="#606">606</a>                     &amp;&amp; history[0]<a name="607" href="#607">607</a>                             .containsKey(CoreAttributeConstants.A_REFERENCE_LENGTH)) {<a name="608" href="#608">608</a>                 <strong>long</strong> referenceLength = history[0].getLong(A_REFERENCE_LENGTH);<a name="609" href="#609">609</a>                 <em class="comment">// carry-forward previous 'reference-length' for future</em><a name="610" href="#610">610</a>                 curi.putLong(A_REFERENCE_LENGTH, referenceLength);<a name="611" href="#611">611</a>                 <em class="comment">// increase content-size to virtual-size for reporting</em><a name="612" href="#612">612</a>                 curi.setContentSize(rec.getRecordedInput().getSize()<a name="613" href="#613">613</a>                         + referenceLength);<a name="614" href="#614">614</a>             }<a name="615" href="#615">615</a>         }<a name="616" href="#616">616</a>     }<a name="617" href="#617">617</a>     <a name="618" href="#618">618</a>     <strong>protected</strong> <strong>void</strong> doAbort(<a href="../../../../org/archive/crawler/datamodel/CrawlURI.html">CrawlURI</a> curi, HttpMethod method,<a name="619" href="#619">619</a>             String annotation) {<a name="620" href="#620">620</a>         curi.addAnnotation(annotation);<a name="621" href="#621">621</a>         curi.getHttpRecorder().close();<a name="622" href="#622">622</a>         method.abort();<a name="623" href="#623">623</a>     }<a name="624" href="#624">624</a>     <a name="625" href="#625">625</a>     <strong>protected</strong> <strong>boolean</strong> checkMidfetchAbort(<a href="../../../../org/archive/crawler/datamodel/CrawlURI.html">CrawlURI</a> curi,<a name="626" href="#626">626</a>             <a href="../../../../org/archive/httpclient/HttpRecorderMethod.html">HttpRecorderMethod</a> method, <a href="../../../../org/apache/commons/httpclient/HttpConnection.html">HttpConnection</a> conn) {<a name="627" href="#627">627</a>         <strong>if</strong> (curi.isPrerequisite() || rulesAccept(getMidfetchRule(curi), curi)) {<a name="628" href="#628">628</a>             <strong>return</strong> false;<a name="629" href="#629">629</a>         }<a name="630" href="#630">630</a>         method.markContentBegin(conn);<a name="631" href="#631">631</a>         <strong>return</strong> <strong>true</strong>;<a name="632" href="#632">632</a>     }<a name="633" href="#633">633</a>     <a name="634" href="#634">634</a>     <strong>protected</strong> <a href="../../../../org/archive/crawler/deciderules/DecideRule.html">DecideRule</a> getMidfetchRul

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩一区二区电影网| 韩国成人福利片在线播放| 成人美女在线观看| 国产精品色一区二区三区| 国产精品99久久久久久宅男| 亚洲国产成人一区二区三区| 成人精品gif动图一区| 中文字幕亚洲不卡| 色偷偷88欧美精品久久久| 亚洲成人一区在线| 欧美不卡视频一区| 国产成人免费视频网站高清观看视频| 久久综合九色综合97婷婷| 成人免费视频免费观看| 亚洲激情自拍偷拍| 日韩一区二区三区观看| 国产xxx精品视频大全| 一区二区视频在线| 日韩欧美高清dvd碟片| 国内偷窥港台综合视频在线播放| 国产精品无遮挡| 欧美视频完全免费看| 激情欧美日韩一区二区| 1024成人网色www| 欧美日韩激情一区| 国产麻豆视频一区二区| 亚洲最新在线观看| 日韩手机在线导航| 成人黄色在线视频| 午夜久久久影院| 久久精品人人爽人人爽| 欧美三级午夜理伦三级中视频| 亚洲最大成人网4388xx| 日韩视频中午一区| 色婷婷综合中文久久一本| 日韩一区二区免费视频| 99精品视频在线观看| 亚洲一区二区综合| 久久夜色精品国产噜噜av| 色狠狠桃花综合| 国产一区二区精品在线观看| 一区二区三区四区精品在线视频| 精品国产成人系列| 精品视频一区三区九区| 成人av在线一区二区| 久久99这里只有精品| 一级日本不卡的影视| 国产精品视频一二| 精品国产一区二区三区久久影院| 欧美在线观看一区二区| 成人一区在线看| 麻豆精品视频在线| 亚洲国产另类av| 国产精品久久久久影院老司 | 性久久久久久久| 欧美激情资源网| 26uuu另类欧美亚洲曰本| 欧美狂野另类xxxxoooo| 色婷婷国产精品综合在线观看| 国产高清不卡一区二区| 精品亚洲成a人| 日本不卡一二三区黄网| 亚洲在线观看免费| 亚洲人成网站精品片在线观看| 国产欧美日韩麻豆91| 精品少妇一区二区三区 | 日韩精品高清不卡| 一区二区三区四区在线| 中文字幕在线免费不卡| 国产精品女同互慰在线看 | 亚洲精品亚洲人成人网| 国产精品天美传媒| 国产精品视频麻豆| 国产亚洲短视频| 国产精品网站在线| 国产精品九色蝌蚪自拍| 中文字幕一区三区| 日韩毛片视频在线看| 中文字幕av一区 二区| 国产欧美日韩在线观看| 国产偷v国产偷v亚洲高清| 2020国产成人综合网| 亚洲精品一区二区三区香蕉| 日韩一区二区在线观看视频| 日韩欧美一区二区久久婷婷| 日韩欧美国产不卡| 国产午夜亚洲精品理论片色戒 | 国产精品一区一区| 成人性生交大合| 97精品视频在线观看自产线路二 | 在线观看视频一区二区欧美日韩| 成人国产精品免费网站| 97精品久久久久中文字幕| 色综合久久综合网97色综合| 一本到一区二区三区| 在线免费不卡电影| 制服丝袜av成人在线看| 精品日韩一区二区三区| 国产调教视频一区| 亚洲欧美一区二区三区国产精品 | 久久影院午夜论| 国产精品色一区二区三区| 亚洲美女在线一区| 首页亚洲欧美制服丝腿| 国产一本一道久久香蕉| 91视频在线观看| 欧美日韩高清不卡| 久久精品视频在线免费观看| 国产精品看片你懂得| 五月婷婷综合网| 精品无人码麻豆乱码1区2区| caoporen国产精品视频| 欧美浪妇xxxx高跟鞋交| 国产欧美1区2区3区| 亚洲一区二区精品视频| 国产一区二区三区免费| 成人激情动漫在线观看| 欧美精品一二三| 中文字幕精品一区| 午夜成人在线视频| 不卡大黄网站免费看| 欧美一区二区三区免费视频| 国产精品午夜电影| 日韩电影在线一区二区三区| 粉嫩一区二区三区性色av| 欧美日韩一级大片网址| 日本一区二区在线不卡| 五月天激情小说综合| 成人一级片网址| 欧美一区二区三区视频免费 | 图片区小说区区亚洲影院| 国产成人免费9x9x人网站视频| 欧美日韩中文国产| 国产精品美女一区二区在线观看| 五月综合激情日本mⅴ| av在线综合网| 久久久久久久久久看片| 午夜欧美在线一二页| 91在线无精精品入口| 久久精品视频在线看| 免费在线观看精品| 欧美日韩一区二区欧美激情| 国产精品毛片无遮挡高清| 国内精品在线播放| 欧美一级专区免费大片| 一区二区三区日韩欧美精品| 不卡av电影在线播放| 久久一夜天堂av一区二区三区 | 久久久亚洲综合| 青青草原综合久久大伊人精品优势| 91蝌蚪porny成人天涯| 国产农村妇女精品| 精品一区二区三区视频在线观看 | 国产精品69毛片高清亚洲| 制服丝袜中文字幕一区| 午夜久久电影网| 色婷婷综合中文久久一本| 亚洲婷婷国产精品电影人久久| 国产精品一区二区久激情瑜伽| 日韩精品一区二区三区在线| 日韩精品久久理论片| 欧美精品v日韩精品v韩国精品v| 亚洲国产精品自拍| 欧美色欧美亚洲另类二区| 亚洲自拍欧美精品| 欧美网站大全在线观看| 亚洲成人免费av| 欧美精品高清视频| 午夜伊人狠狠久久| 91精品综合久久久久久| 日本亚洲三级在线| 制服丝袜亚洲网站| 裸体在线国模精品偷拍| 欧美成va人片在线观看| 国产乱国产乱300精品| 久久影院电视剧免费观看| 国产成人午夜精品5599| 日本一区二区三区四区| 91原创在线视频| 亚洲一区精品在线| 51精品视频一区二区三区| 麻豆精品视频在线| 久久精品夜夜夜夜久久| 99视频国产精品| 一区二区三区在线视频观看58 | 亚洲男人天堂一区| 欧美视频自拍偷拍| 美国十次了思思久久精品导航| 久久综合久久综合亚洲| 不卡一区二区三区四区| 亚洲欧美日韩国产一区二区三区 | 精品久久国产字幕高潮| 国产不卡视频在线播放| 一区二区三区在线观看动漫| 欧美日韩国产精品成人| 国内欧美视频一区二区 | 亚洲韩国一区二区三区| 91精品国产综合久久久久| 国产精品一区二区91| 亚洲免费观看高清完整|