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

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

?? defaulthttpmethodretryhandler.java

?? Light in the box 抓取程序。 使用HttpClient
?? JAVA
字號:
/* * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//httpclient/src/java/org/apache/commons/httpclient/DefaultHttpMethodRetryHandler.java,v 1.3 2004/12/20 11:47:46 olegk Exp $ * $Revision: 480424 $ * $Date: 2006-11-29 06:56:49 +0100 (Wed, 29 Nov 2006) $ * * ==================================================================== * *  Licensed to the Apache Software Foundation (ASF) under one or more *  contributor license agreements.  See the NOTICE file distributed with *  this work for additional information regarding copyright ownership. *  The ASF licenses this file to You under the Apache License, Version 2.0 *  (the "License"); you may not use this file except in compliance with *  the License.  You may obtain a copy of the License at * *      http://www.apache.org/licenses/LICENSE-2.0 * *  Unless required by applicable law or agreed to in writing, software *  distributed under the License is distributed on an "AS IS" BASIS, *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *  See the License for the specific language governing permissions and *  limitations under the License. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation.  For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. * */package org.apache.commons.httpclient;import java.io.IOException;import java.io.InterruptedIOException;import java.net.NoRouteToHostException;import java.net.UnknownHostException;/** * The default {@link HttpMethodRetryHandler} used by {@link HttpMethod}s. *  * @author Michael Becke * @author <a href="mailto:oleg -at- ural.ru">Oleg Kalnichevski</a> */public class DefaultHttpMethodRetryHandler implements HttpMethodRetryHandler {    private static Class SSL_HANDSHAKE_EXCEPTION = null;        static {        try {            SSL_HANDSHAKE_EXCEPTION = Class.forName("javax.net.ssl.SSLHandshakeException");        } catch (ClassNotFoundException ignore) {                   }    }    /** the number of times a method will be retried */    private int retryCount;        /** Whether or not methods that have successfully sent their request will be retried */    private boolean requestSentRetryEnabled;        /**     * Creates a new DefaultHttpMethodRetryHandler.     * @param retryCount the number of times a method will be retried     * @param requestSentRetryEnabled if true, methods that have successfully sent their request will be retried     */    public DefaultHttpMethodRetryHandler(int retryCount, boolean requestSentRetryEnabled) {        super();        this.retryCount = retryCount;        this.requestSentRetryEnabled = requestSentRetryEnabled;    }        /**     * Creates a new DefaultHttpMethodRetryHandler that retries up to 3 times     * but does not retry methods that have successfully sent their requests.     */    public DefaultHttpMethodRetryHandler() {        this(3, false);    }    /**      * Used <code>retryCount</code> and <code>requestSentRetryEnabled</code> to determine     * if the given method should be retried.     *      * @see HttpMethodRetryHandler#retryMethod(HttpMethod, IOException, int)     */    public boolean retryMethod(        final HttpMethod method,         final IOException exception,         int executionCount) {        if (method == null) {            throw new IllegalArgumentException("HTTP method may not be null");        }        if (exception == null) {            throw new IllegalArgumentException("Exception parameter may not be null");        }        // HttpMethod interface is the WORST thing ever done to HttpClient        if (method instanceof HttpMethodBase) {            if (((HttpMethodBase)method).isAborted()) {                return false;            }        }        if (executionCount > this.retryCount) {            // Do not retry if over max retry count            return false;        }        if (exception instanceof NoHttpResponseException) {            // Retry if the server dropped connection on us            return true;        }        if (exception instanceof InterruptedIOException) {            // Timeout            return false;        }        if (exception instanceof UnknownHostException) {            // Unknown host            return false;        }        if (exception instanceof NoRouteToHostException) {            // Host unreachable            return false;        }        if (SSL_HANDSHAKE_EXCEPTION != null && SSL_HANDSHAKE_EXCEPTION.isInstance(exception)) {            // SSL handshake exception            return false;        }        if (!method.isRequestSent() || this.requestSentRetryEnabled) {            // Retry if the request has not been sent fully or            // if it's OK to retry methods that have been sent            return true;        }        // otherwise do not retry        return false;    }        /**     * @return <code>true</code> if this handler will retry methods that have      * successfully sent their request, <code>false</code> otherwise     */    public boolean isRequestSentRetryEnabled() {        return requestSentRetryEnabled;    }    /**     * @return the maximum number of times a method will be retried     */    public int getRetryCount() {        return retryCount;    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本大胆欧美人术艺术动态| 亚洲欧美日韩成人高清在线一区| 色偷偷久久人人79超碰人人澡| 国内精品不卡在线| 精品中文av资源站在线观看| 蜜臀av一区二区在线观看| 日韩电影在线免费看| 亚洲一区二区视频在线观看| 亚洲大尺度视频在线观看| 午夜精品福利久久久| 蜜臀久久99精品久久久画质超高清| 日韩福利视频导航| 日本aⅴ亚洲精品中文乱码| 蜜臀久久久99精品久久久久久| 久久99精品国产.久久久久| 久久99精品国产麻豆婷婷洗澡| 九色综合国产一区二区三区| 国产尤物一区二区| 99久久国产综合精品色伊| 色呦呦日韩精品| 欧美精品三级在线观看| 精品国产伦一区二区三区观看体验| 亚洲精品在线网站| 国产精品久久久久久一区二区三区| 亚洲伦理在线精品| 日本三级亚洲精品| 国产a久久麻豆| 欧美午夜不卡在线观看免费| 欧美一级欧美三级| 亚洲国产精品黑人久久久| 亚洲国产wwwccc36天堂| 精品一区二区三区免费毛片爱| 成人中文字幕电影| 4438x亚洲最大成人网| 国产欧美日韩麻豆91| 亚洲午夜影视影院在线观看| 国内精品国产三级国产a久久| 97久久超碰国产精品电影| 欧美一区日本一区韩国一区| 中文字幕不卡三区| 日本不卡视频一二三区| av在线不卡电影| 日韩片之四级片| 有码一区二区三区| 成人晚上爱看视频| 欧美一区二区免费观在线| 国产精品久久福利| 精品一二三四在线| 欧美日本在线播放| 成人免费在线观看入口| 国产一区二区三区久久久| 欧美性极品少妇| 综合色天天鬼久久鬼色| 精品一区二区av| 精品视频在线免费| 中文字幕一区二区三区精华液 | 又紧又大又爽精品一区二区| 国产综合色视频| 337p亚洲精品色噜噜狠狠| 亚洲精品免费看| 99久久精品国产毛片| 亚洲成在人线免费| 日本韩国视频一区二区| 国产精品久久看| 成人免费视频视频| 国产亚洲欧美日韩日本| 久久99国产精品久久99果冻传媒| 欧美日韩国产成人在线免费| 亚洲精品久久久久久国产精华液| 高清国产一区二区| 久久亚洲精精品中文字幕早川悠里| 毛片av一区二区| 精品区一区二区| 激情五月播播久久久精品| 日韩久久免费av| 国产在线精品一区在线观看麻豆| 日韩欧美激情四射| 国产中文字幕精品| 久久久久国产精品麻豆ai换脸| 国产一区欧美一区| 国产欧美日韩在线| 97久久人人超碰| 午夜欧美在线一二页| 91精品久久久久久久99蜜桃| 日韩中文字幕1| 精品日韩一区二区| 国产成人aaa| 综合婷婷亚洲小说| 欧美日韩国产片| 久久99精品久久久久| 国产亚洲欧洲一区高清在线观看| 国产成人av一区二区三区在线| 国产精品欧美一区喷水| 色中色一区二区| 石原莉奈在线亚洲三区| 日韩精品自拍偷拍| 丁香另类激情小说| 亚洲激情图片qvod| 欧美一级日韩免费不卡| 国产成人亚洲精品青草天美 | 在线免费观看一区| 午夜成人在线视频| 久久久久成人黄色影片| 日本精品免费观看高清观看| 免费一级片91| 最新中文字幕一区二区三区| 欧美日韩国产免费一区二区| 国产激情视频一区二区在线观看| 一区二区三区自拍| 精品日韩一区二区三区| 一本久久综合亚洲鲁鲁五月天| 日本中文一区二区三区| 国产精品系列在线| 欧美一区二区视频网站| 成a人片亚洲日本久久| 亚洲成人一区在线| 亚洲国产精品激情在线观看| 88在线观看91蜜桃国自产| 福利一区二区在线观看| 日韩综合小视频| 亚洲欧美国产高清| 久久日一线二线三线suv| 欧美视频一区在线观看| 国产盗摄女厕一区二区三区| 性久久久久久久久| 亚洲人成精品久久久久| 久久久电影一区二区三区| 欧美精品日韩综合在线| av电影天堂一区二区在线| 黄色日韩网站视频| 婷婷中文字幕综合| 亚洲免费伊人电影| 国产片一区二区| 日韩免费视频一区| 91精品在线观看入口| 色综合久久久久网| 99久久精品免费精品国产| 国产美女娇喘av呻吟久久| 日本欧美大码aⅴ在线播放| 一区二区三区中文字幕精品精品| 欧美激情一二三区| 欧美精品一区二区三区四区| 91精品国产高清一区二区三区蜜臀| 色综合久久天天| 91精品福利视频| 色妞www精品视频| 93久久精品日日躁夜夜躁欧美| 国产成人av资源| 成人深夜福利app| 国产盗摄视频一区二区三区| 国产精品资源在线| 国产**成人网毛片九色 | 97成人超碰视| 在线一区二区三区四区| 欧美中文字幕不卡| 欧美亚一区二区| 欧美日本一区二区在线观看| 欧美日韩日本视频| 在线成人免费视频| 日韩午夜在线影院| 精品久久久久久久久久久久包黑料 | 国产精品美女一区二区三区 | 91麻豆精品国产91久久久久| 欧美三级日韩在线| 91精品国产麻豆国产自产在线| 日韩精品最新网址| 国产欧美一区二区三区网站| 亚洲国产精品高清| 亚洲色欲色欲www| 天天综合色天天综合色h| 日日骚欧美日韩| 久久99精品久久久| 成人免费高清在线| 在线观看免费视频综合| 91麻豆精品国产91久久久更新时间 | 亚洲国产高清不卡| 一区二区成人在线| 婷婷丁香激情综合| 懂色一区二区三区免费观看| 91在线视频免费91| 一本色道久久加勒比精品| 欧美一区二区三区四区在线观看| 精品国产乱子伦一区| 亚洲天堂精品视频| 日韩精品福利网| 成人国产精品视频| 7777精品久久久大香线蕉| 国产欧美一区二区精品秋霞影院| 中文字幕一区免费在线观看| 日韩黄色小视频| 91在线码无精品| www国产成人| 一区二区三区四区视频精品免费| 亚洲第一福利视频在线| 国产成人免费视频网站高清观看视频| 色偷偷88欧美精品久久久| 久久伊人蜜桃av一区二区| 亚洲大片精品永久免费| 99国产麻豆精品| 国产欧美精品在线观看|