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

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

?? headmethod.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/methods/HeadMethod.java,v 1.29 2004/06/13 20:22:19 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.methods;import java.io.IOException;import org.apache.commons.httpclient.HttpConnection;import org.apache.commons.httpclient.HttpException;import org.apache.commons.httpclient.HttpMethodBase;import org.apache.commons.httpclient.HttpState;import org.apache.commons.httpclient.ProtocolException;import org.apache.commons.httpclient.params.HttpMethodParams;import org.apache.commons.logging.Log;import org.apache.commons.logging.LogFactory;/** * Implements the HTTP HEAD method. * <p> * The HTTP HEAD method is defined in section 9.4 of  * <a href="http://www.ietf.org/rfc/rfc2616.txt">RFC2616</a>: * <blockquote> * The HEAD method is identical to GET except that the server MUST NOT * return a message-body in the response. The metainformation contained * in the HTTP headers in response to a HEAD request SHOULD be identical * to the information sent in response to a GET request. This method can * be used for obtaining metainformation about the entity implied by the * request without transferring the entity-body itself. This method is * often used for testing hypertext links for validity, accessibility, * and recent modification. * </blockquote> * </p> *  * @author <a href="mailto:remm@apache.org">Remy Maucherat</a> * @author <a href="mailto:mbowler@GargoyleSoftware.com">Mike Bowler</a> * @author <a href="mailto:jsdever@apache.org">Jeff Dever</a> * @author <a href="mailto:oleg@ural.ru">oleg Kalnichevski</a> * * @version $Revision: 480424 $ * @since 1.0 */public class HeadMethod extends HttpMethodBase {    //~ Static variables/initializers    /** Log object for this class. */    private static final Log LOG = LogFactory.getLog(HeadMethod.class);    //~ Constructors    /**     * No-arg constructor.     *      * @since 1.0     */    public HeadMethod() {        setFollowRedirects(true);    }    /**     * Constructor specifying a URI.     *     * @param uri either an absolute or relative URI     *      * @since 1.0     */    public HeadMethod(String uri) {        super(uri);        setFollowRedirects(true);    }    //~ Methods    /**     * Returns <tt>"HEAD"</tt>.     *      * @return <tt>"HEAD"</tt>     *      * @since 2.0     */    public String getName() {        return "HEAD";    }    /**     * Recycles the HTTP method so that it can be used again.     * Note that all of the instance variables will be reset     * once this method has been called. This method will also     * release the connection being used by this HTTP method.     *      * @see #releaseConnection()     *      * @since 1.0     *      * @deprecated no longer supported and will be removed in the future     *             version of HttpClient     */    public void recycle() {        super.recycle();        setFollowRedirects(true);    }    /**     * Overrides {@link HttpMethodBase} method to <i>not</i> read a response     * body, despite the presence of a <tt>Content-Length</tt> or     * <tt>Transfer-Encoding</tt> header.     *      * @param state the {@link HttpState state} information associated with this method     * @param conn the {@link HttpConnection connection} used to execute     *        this HTTP method     *     * @throws IOException if an I/O (transport) error occurs. Some transport exceptions     *                     can be recovered from.     * @throws HttpException  if a protocol exception occurs. Usually protocol exceptions      *                    cannot be recovered from.     *     * @see #readResponse     * @see #processResponseBody     *      * @since 2.0     */    protected void readResponseBody(HttpState state, HttpConnection conn)    throws HttpException, IOException {        LOG.trace(            "enter HeadMethod.readResponseBody(HttpState, HttpConnection)");                int bodyCheckTimeout =             getParams().getIntParameter(HttpMethodParams.HEAD_BODY_CHECK_TIMEOUT, -1);        if (bodyCheckTimeout < 0) {            responseBodyConsumed();        } else {            if (LOG.isDebugEnabled()) {                LOG.debug("Check for non-compliant response body. Timeout in "                  + bodyCheckTimeout + " ms");                }            boolean responseAvailable = false;            try {                responseAvailable = conn.isResponseAvailable(bodyCheckTimeout);            } catch (IOException e) {                LOG.debug("An IOException occurred while testing if a response was available,"                    + " we will assume one is not.",                     e);                responseAvailable = false;            }            if (responseAvailable) {                if (getParams().isParameterTrue(HttpMethodParams.REJECT_HEAD_BODY)) {                    throw new ProtocolException(                        "Body content may not be sent in response to HTTP HEAD request");                } else {                    LOG.warn("Body content returned in response to HTTP HEAD");                    }                super.readResponseBody(state, conn);            }        }    }        /**     * Returns non-compliant response body check timeout.     *      * @return The period of time in milliseconds to wait for a response      *         body from a non-compliant server. <tt>-1</tt> returned when      *         non-compliant response body check is disabled     *      * @deprecated Use {@link HttpMethodParams}     *      * @see #getParams()     * @see HttpMethodParams     * @see HttpMethodParams#HEAD_BODY_CHECK_TIMEOUT     */    public int getBodyCheckTimeout() {        return getParams().getIntParameter(HttpMethodParams.HEAD_BODY_CHECK_TIMEOUT, -1);    }    /**     * Sets non-compliant response body check timeout.     *      * @param timeout The period of time in milliseconds to wait for a response      *         body from a non-compliant server. <tt>-1</tt> can be used to      *         disable non-compliant response body check     *       * @deprecated Use {@link HttpMethodParams}     *      * @see #getParams()     * @see HttpMethodParams     * @see HttpMethodParams#HEAD_BODY_CHECK_TIMEOUT     */    public void setBodyCheckTimeout(int timeout) {        getParams().setIntParameter(HttpMethodParams.HEAD_BODY_CHECK_TIMEOUT, timeout);    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久91精品国产91久久小草| 日韩高清不卡一区| 精品日韩欧美在线| 欧美伊人久久大香线蕉综合69| 粉嫩av一区二区三区粉嫩| 久久超碰97人人做人人爱| 日韩在线一二三区| 天天av天天翘天天综合网 | 亚洲电影你懂得| 亚洲另类在线视频| 亚洲最大成人网4388xx| 亚洲一区二区三区四区五区黄| 亚洲免费电影在线| 一区二区成人在线视频| 一区二区三区欧美| 亚洲成人中文在线| 青青青爽久久午夜综合久久午夜| 日韩电影在线免费看| 毛片一区二区三区| 国产伦精一区二区三区| 国产美女在线观看一区| 国产精品99久久久久久有的能看 | 国模套图日韩精品一区二区 | 不卡视频一二三四| 91美女在线观看| 欧美主播一区二区三区美女| 欧美综合一区二区| 欧美一区二区人人喊爽| 精品88久久久久88久久久| 国产日韩欧美高清在线| 亚洲精品久久久蜜桃| 热久久一区二区| 国产成人av一区| 在线欧美日韩精品| 26uuu久久天堂性欧美| 国产精品传媒入口麻豆| 亚洲国产另类精品专区| 国内精品伊人久久久久影院对白| 成人精品在线视频观看| 欧美三级韩国三级日本三斤| 久久久久久夜精品精品免费| 亚洲一区二区不卡免费| 久久99国产精品免费网站| 91免费视频网址| 精品黑人一区二区三区久久| 亚洲视频免费观看| 精品一区二区免费看| 一本久久综合亚洲鲁鲁五月天| 日韩精品一区二区在线| 亚洲欧美另类小说| 国产精品综合网| 欧美精品一卡两卡| 国产精品乱码人人做人人爱| 日韩激情在线观看| 成av人片一区二区| xf在线a精品一区二区视频网站| 夜夜精品浪潮av一区二区三区| 国产一区在线观看麻豆| 欧美性生活大片视频| 国产精品成人网| 国产又黄又大久久| 日韩一二三区不卡| 亚洲成在人线在线播放| 91丨porny丨蝌蚪视频| 久久久国产午夜精品| 美女一区二区三区| 91精品国产全国免费观看| 亚洲黄色av一区| 色综合网色综合| 国产亚洲一本大道中文在线| 久久精品噜噜噜成人88aⅴ| 欧美性淫爽ww久久久久无| 中文字幕制服丝袜一区二区三区| 国产精品乡下勾搭老头1| 日韩一区二区电影| 美女高潮久久久| 欧美一区二区三区公司| 日韩av一区二区在线影视| 欧美日韩高清在线| 亚洲动漫第一页| 在线观看网站黄不卡| 亚洲欧美日本韩国| 色综合久久中文字幕| 亚洲免费视频中文字幕| 色哟哟一区二区在线观看| 亚洲色图在线播放| 99国内精品久久| 亚洲日穴在线视频| 99国产精品久久久久久久久久 | 在线观看亚洲一区| 亚洲一区免费观看| 欧美视频一区在线| 日韩av二区在线播放| 欧美电影免费提供在线观看| 久久成人18免费观看| 久久久综合激的五月天| 成人午夜看片网址| 亚洲色图另类专区| 欧美日韩免费不卡视频一区二区三区| 亚洲国产美女搞黄色| 日韩一级在线观看| 国产丶欧美丶日本不卡视频| 国产精品久久久久久妇女6080 | 日韩精品中文字幕一区二区三区 | 成人a免费在线看| 日韩毛片视频在线看| 欧美在线观看你懂的| 日韩精品乱码av一区二区| 精品国产伦一区二区三区免费| 丰满放荡岳乱妇91ww| 亚洲麻豆国产自偷在线| 日韩一区二区高清| 成人精品在线视频观看| 婷婷激情综合网| 欧美国产成人在线| 正在播放一区二区| 国产精一区二区三区| 亚洲福中文字幕伊人影院| 26uuu精品一区二区在线观看| 96av麻豆蜜桃一区二区| 日本不卡的三区四区五区| 中文字幕不卡的av| 在线不卡的av| 91麻豆文化传媒在线观看| 蜜桃免费网站一区二区三区| 国产精品色一区二区三区| 欧美婷婷六月丁香综合色| 成人在线综合网| 免费在线观看日韩欧美| 综合欧美亚洲日本| 精品三级在线看| 欧美午夜片在线看| 成人精品视频一区| 国内久久精品视频| 日本成人在线视频网站| 中文欧美字幕免费| 26uuu精品一区二区三区四区在线 26uuu精品一区二区在线观看 | caoporm超碰国产精品| 久久成人免费日本黄色| 亚洲一区在线视频| 亚洲手机成人高清视频| 久久精品在这里| 日韩欧美电影一区| 欧美日韩一级黄| 在线亚洲一区二区| 99久久精品一区| youjizz久久| 国产成人在线电影| 国产一区欧美一区| 久久超碰97人人做人人爱| 日本午夜精品一区二区三区电影| 夜夜嗨av一区二区三区四季av| 一区在线观看视频| 成人欧美一区二区三区小说 | 亚洲欧美中日韩| 国产亚洲成av人在线观看导航| 日韩一卡二卡三卡四卡| 欧美一区日韩一区| 欧美疯狂做受xxxx富婆| 欧美精品视频www在线观看 | 日韩欧美亚洲另类制服综合在线 | 精品一区二区精品| 国产真实乱子伦精品视频| 激情国产一区二区| 精品制服美女丁香| 国产主播一区二区三区| 丁香桃色午夜亚洲一区二区三区| 国产精品综合一区二区三区| 成人丝袜视频网| 91免费版在线看| 欧美三级中文字| 欧美一级夜夜爽| 国产亚洲成av人在线观看导航| 欧美激情一区在线| 一区二区高清视频在线观看| 亚洲一区二区三区在线播放 | 精品福利av导航| 国产欧美日韩三级| 国产精品久久久久久久久动漫| 亚洲精品欧美综合四区| 性做久久久久久免费观看欧美| 日本aⅴ免费视频一区二区三区| 精品一区二区三区影院在线午夜| 国产成人午夜高潮毛片| 波多野结衣中文字幕一区 | 日韩中文字幕一区二区三区| 蜜桃av噜噜一区| 成人性视频免费网站| 欧美群妇大交群的观看方式 | 国内精品伊人久久久久影院对白| 高清日韩电视剧大全免费| 欧美在线视频你懂得| 日韩免费高清av| 亚洲同性gay激情无套| 天天亚洲美女在线视频| 成人开心网精品视频| 91精品国产综合久久久久久| 国产欧美综合在线| 天天综合色天天| www.在线成人|