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

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

?? entityenclosingmethod.java

?? Light in the box 抓取程序。 使用HttpClient
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//httpclient/src/java/org/apache/commons/httpclient/methods/EntityEnclosingMethod.java,v 1.39 2004/07/03 14:27:03 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 java.io.InputStream;import java.io.OutputStream;import java.io.UnsupportedEncodingException;import org.apache.commons.httpclient.ChunkedOutputStream;import org.apache.commons.httpclient.Header;import org.apache.commons.httpclient.HttpConnection;import org.apache.commons.httpclient.HttpException;import org.apache.commons.httpclient.HttpState;import org.apache.commons.httpclient.HttpVersion;import org.apache.commons.httpclient.ProtocolException;import org.apache.commons.logging.Log;import org.apache.commons.logging.LogFactory;/** * This abstract class serves as a foundation for all HTTP methods  * that can enclose an entity within requests  * * @author <a href="mailto:oleg@ural.ru">Oleg Kalnichevski</a> * @author <a href="mailto:jsdever@apache.org">Jeff Dever</a> * * @since 2.0beta1 * @version $Revision: 480424 $ */public abstract class EntityEnclosingMethod extends ExpectContinueMethod {    // ----------------------------------------- Static variables/initializers    /**     * The content length will be calculated automatically. This implies     * buffering of the content.     * @deprecated Use {@link InputStreamRequestEntity#CONTENT_LENGTH_AUTO}.     */    public static final long CONTENT_LENGTH_AUTO = InputStreamRequestEntity.CONTENT_LENGTH_AUTO;    /**     * The request will use chunked transfer encoding. Content length is not     * calculated and the content is not buffered.<br>     * @deprecated Use {@link #setContentChunked(boolean)}.     */    public static final long CONTENT_LENGTH_CHUNKED = -1;    /** LOG object for this class. */    private static final Log LOG = LogFactory.getLog(EntityEnclosingMethod.class);    /** The unbuffered request body, if any. */    private InputStream requestStream = null;    /** The request body as string, if any. */    private String requestString = null;    private RequestEntity requestEntity;        /** Counts how often the request was sent to the server. */    private int repeatCount = 0;    /** The content length of the <code>requestBodyStream</code> or one of     *  <code>CONTENT_LENGTH_AUTO</code> and <code>CONTENT_LENGTH_CHUNKED</code>.     *      * @deprecated     */    private long requestContentLength = InputStreamRequestEntity.CONTENT_LENGTH_AUTO;        private boolean chunked = false;    // ----------------------------------------------------------- Constructors    /**     * No-arg constructor.     *     * @since 2.0     */    public EntityEnclosingMethod() {        super();        setFollowRedirects(false);    }    /**     * Constructor specifying a URI.     *     * @param uri either an absolute or relative URI     *     * @since 2.0     */    public EntityEnclosingMethod(String uri) {        super(uri);        setFollowRedirects(false);    }    /**     * Returns <tt>true</tt> if there is a request body to be sent.     *      * <P>This method must be overridden by sub-classes that implement     * alternative request content input methods     * </p>     *      * @return boolean     *      * @since 2.0beta1     */    protected boolean hasRequestContent() {        LOG.trace("enter EntityEnclosingMethod.hasRequestContent()");        return (this.requestEntity != null)             || (this.requestStream != null)             || (this.requestString != null);    }    /**     * Clears the request body.     *      * <p>This method must be overridden by sub-classes that implement     * alternative request content input methods.</p>     *      * @since 2.0beta1     */    protected void clearRequestBody() {        LOG.trace("enter EntityEnclosingMethod.clearRequestBody()");        this.requestStream = null;        this.requestString = null;        this.requestEntity = null;    }    /**     * Generates the request body.        *      * <p>This method must be overridden by sub-classes that implement     * alternative request content input methods.</p>     *      * @return request body as an array of bytes. If the request content      *          has not been set, returns <tt>null</tt>.     *      * @since 2.0beta1     */    protected byte[] generateRequestBody() {        LOG.trace("enter EntityEnclosingMethod.renerateRequestBody()");        return null;    }    protected RequestEntity generateRequestEntity() {                byte[] requestBody = generateRequestBody();        if (requestBody != null) {            // use the request body, if it exists.            // this is just for backwards compatability            this.requestEntity = new ByteArrayRequestEntity(requestBody);        } else if (this.requestStream != null) {            this.requestEntity = new InputStreamRequestEntity(                requestStream,                 requestContentLength);            this.requestStream = null;        } else if (this.requestString != null) {            String charset = getRequestCharSet();             try {                this.requestEntity = new StringRequestEntity(                        requestString, null, charset);            } catch (UnsupportedEncodingException e) {                if (LOG.isWarnEnabled()) {                    LOG.warn(charset + " not supported");                }                try {                    this.requestEntity = new StringRequestEntity(                            requestString, null, null);                } catch (UnsupportedEncodingException ignore) {                }            }        }        return this.requestEntity;    }        /**     * Entity enclosing requests cannot be redirected without user intervention     * according to RFC 2616.     *     * @return <code>false</code>.     *     * @since 2.0     */    public boolean getFollowRedirects() {        return false;    }    /**     * Entity enclosing requests cannot be redirected without user intervention      * according to RFC 2616.     *     * @param followRedirects must always be <code>false</code>     */    public void setFollowRedirects(boolean followRedirects) {        if (followRedirects == true) {            throw new IllegalArgumentException("Entity enclosing requests cannot be redirected without user intervention");        }        super.setFollowRedirects(false);    }    /**     * Sets length information about the request body.     *     * <p>     * Note: If you specify a content length the request is unbuffered. This     * prevents redirection and automatic retry if a request fails the first     * time. This means that the HttpClient can not perform authorization     * automatically but will throw an Exception. You will have to set the     * necessary 'Authorization' or 'Proxy-Authorization' headers manually.     * </p>     *     * @param length size in bytes or any of CONTENT_LENGTH_AUTO,     *        CONTENT_LENGTH_CHUNKED. If number of bytes or CONTENT_LENGTH_CHUNKED     *        is specified the content will not be buffered internally and the     *        Content-Length header of the request will be used. In this case     *        the user is responsible to supply the correct content length.     *        If CONTENT_LENGTH_AUTO is specified the request will be buffered     *        before it is sent over the network.     *      * @deprecated Use {@link #setContentChunked(boolean)} or      * {@link #setRequestEntity(RequestEntity)}     */    public void setRequestContentLength(int length) {        LOG.trace("enter EntityEnclosingMethod.setRequestContentLength(int)");        this.requestContentLength = length;    }    /**     * Returns the request's charset.  The charset is parsed from the request entity's      * content type, unless the content type header has been set manually.      *      * @see RequestEntity#getContentType()     *      * @since 3.0     */    public String getRequestCharSet() {        if (getRequestHeader("Content-Type") == null) {            // check the content type from request entity            // We can't call getRequestEntity() since it will probably call            // this method.            if (this.requestEntity != null) {                return getContentCharSet(                    new Header("Content-Type", requestEntity.getContentType()));            } else {                return super.getRequestCharSet();            }        } else {

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美性大战久久久久久久| 欧美精品日韩一本| 日本在线不卡视频| 国产精品久久久久久久久免费相片 | 亚洲三级在线免费观看| 欧美va亚洲va| 欧美日韩国产系列| 国产91露脸合集magnet| 日本麻豆一区二区三区视频| 成人欧美一区二区三区黑人麻豆 | 欧美mv和日韩mv的网站| 色呦呦国产精品| 国产91高潮流白浆在线麻豆| 青青草原综合久久大伊人精品优势| 中文字幕一区日韩精品欧美| 精品成人一区二区三区四区| 欧美色精品在线视频| 97se狠狠狠综合亚洲狠狠| 国产一区啦啦啦在线观看| 日韩一区精品视频| 亚洲专区一二三| 136国产福利精品导航| 国产日韩欧美a| 久久综合九色综合欧美就去吻| 欧美人与性动xxxx| 欧美日韩精品二区第二页| 91在线视频网址| 91免费版pro下载短视频| 成熟亚洲日本毛茸茸凸凹| 精品综合免费视频观看| 免费在线一区观看| 日本一不卡视频| 日韩av高清在线观看| 午夜激情一区二区三区| 亚洲va在线va天堂| 亚洲成人免费在线观看| 亚洲va欧美va天堂v国产综合| 亚洲一区二区三区中文字幕在线 | 国产精品国产三级国产普通话蜜臀| 精品国一区二区三区| 欧美成人r级一区二区三区| 日韩欧美一区中文| 精品国产区一区| 26uuu精品一区二区三区四区在线| 精品国产一二三| www成人在线观看| 国产三级精品在线| 国产精品久久久久三级| 亚洲欧美日韩久久| 亚洲精品ww久久久久久p站| 一区二区成人在线视频| 亚洲电影第三页| 美女一区二区视频| 国产成人精品免费视频网站| 国产成人久久精品77777最新版本 国产成人鲁色资源国产91色综 | 日韩精品91亚洲二区在线观看| 五月激情丁香一区二区三区| 日本在线不卡视频| 国内成+人亚洲+欧美+综合在线 | 欧美日韩精品一区二区三区四区 | 久久99精品久久只有精品| 国产麻豆成人传媒免费观看| 成人小视频免费在线观看| 99久久99久久精品免费观看| 色诱亚洲精品久久久久久| 欧美日韩精品三区| 精品国产三级电影在线观看| 亚洲国产高清不卡| 玉足女爽爽91| 久久99国产精品久久99| 国产成a人亚洲精品| 欧洲精品在线观看| 精品精品欲导航| 国产精品伦理在线| 丝袜美腿亚洲综合| 国产成人超碰人人澡人人澡| 欧洲生活片亚洲生活在线观看| 日韩一区二区影院| 国产精品国产三级国产a| 天堂久久久久va久久久久| 国产.欧美.日韩| 日本韩国欧美一区二区三区| 日韩欧美一二区| 日韩一区在线免费观看| 青娱乐精品视频在线| 99久久99久久精品国产片果冻| 欧美伦理电影网| 国产精品毛片大码女人 | 99久久精品情趣| 日韩午夜在线观看视频| 国产精品第五页| 美女www一区二区| 日本精品一区二区三区高清 | av电影在线观看一区| 欧美久久高跟鞋激| 亚洲欧洲精品天堂一级| 久久国内精品视频| 91极品美女在线| 日本一区免费视频| 免费观看在线综合| 色婷婷精品久久二区二区蜜臀av| 精品国产一区二区亚洲人成毛片| 亚洲一二三级电影| jizz一区二区| 国产日产欧美一区二区视频| 日本va欧美va精品| 91久久精品一区二区| 欧美极品少妇xxxxⅹ高跟鞋| 图片区日韩欧美亚洲| 色婷婷亚洲婷婷| 国产精品午夜在线观看| 精品在线一区二区| 在线不卡免费av| 亚洲线精品一区二区三区八戒| 成人午夜免费视频| 亚洲精品一区二区精华| 日欧美一区二区| 欧美综合一区二区| 亚洲欧美乱综合| 成人动漫中文字幕| 亚洲国产精品ⅴa在线观看| 国产美女视频一区| www国产精品av| 国产九九视频一区二区三区| 日韩亚洲欧美中文三级| 日产精品久久久久久久性色| 一本大道久久a久久精品综合| 欧美激情在线看| 粉嫩aⅴ一区二区三区四区五区| 精品少妇一区二区三区在线视频| 日本亚洲电影天堂| 91精品国产全国免费观看| 日韩精品欧美精品| 日韩亚洲电影在线| 狠狠色丁香久久婷婷综合丁香| 91精品中文字幕一区二区三区| 亚洲高清在线精品| 欧美日韩国产精品成人| 性欧美大战久久久久久久久| 欧美日韩久久不卡| 青青草成人在线观看| 日韩亚洲欧美一区| 国产剧情在线观看一区二区| 久久精品视频网| 粉嫩av一区二区三区| 亚洲色图清纯唯美| 在线欧美日韩精品| 日韩主播视频在线| 日韩美女视频在线| 国产一区 二区 三区一级| 国产精品免费丝袜| 色婷婷久久久久swag精品| 午夜欧美2019年伦理| 日韩一区二区在线观看视频| 狠狠色狠狠色综合| 亚洲欧美综合另类在线卡通| 在线观看免费亚洲| 久久精品国产一区二区| 国产精品午夜久久| 日本韩国一区二区| 久久精品噜噜噜成人av农村| 亚洲精品国产高清久久伦理二区| 欧美日韩国产系列| 国产在线一区观看| 亚洲欧洲日韩一区二区三区| 91精彩视频在线观看| 蜜臀久久99精品久久久画质超高清 | 欧美视频一二三区| 久久精品99国产精品日本| 久久老女人爱爱| 色94色欧美sute亚洲线路一ni| 日韩电影在线一区| 国产欧美日韩综合| 91电影在线观看| 国内精品久久久久影院薰衣草 | 精品一区二区三区免费视频| 国产精品欧美一级免费| 欧美日韩黄视频| 国产一区二区女| 亚洲一区二区三区在线看 | 亚洲福利一区二区三区| 久久亚洲二区三区| 欧美系列亚洲系列| 国产剧情一区在线| 日日夜夜免费精品| 亚洲欧洲精品成人久久奇米网| 欧美一区二区三区婷婷月色| 大尺度一区二区| 蜜臀国产一区二区三区在线播放 | 亚洲天堂精品视频| 日韩欧美一级二级| 在线观看91视频| 成人一区二区三区中文字幕| 五月激情丁香一区二区三区| 亚洲欧洲日韩av| 久久久www成人免费无遮挡大片| 欧美日韩和欧美的一区二区| 成人午夜在线播放| 国模娜娜一区二区三区| 日韩精品国产欧美|