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

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

?? 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 {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人激情av网| 国产一区二区三区日韩| 日韩一区在线看| 国产精品久久久久久久久图文区| 久久女同精品一区二区| 久久久一区二区三区| 久久综合久色欧美综合狠狠| 久久一夜天堂av一区二区三区| 精品国产精品网麻豆系列| 精品99999| 亚洲欧美自拍偷拍| 一区二区三区四区在线| 亚洲一区二区三区不卡国产欧美| 亚洲超碰精品一区二区| 免费成人在线观看视频| 国产一区二区精品在线观看| 成人的网站免费观看| 91美女片黄在线观看| 欧美日韩国产片| 精品国产一区二区三区av性色| 日本一区二区三区免费乱视频| 亚洲欧美在线另类| 丝袜国产日韩另类美女| 国产乱码字幕精品高清av| 91原创在线视频| 日韩色在线观看| 欧美激情资源网| 亚洲6080在线| 国产成人日日夜夜| 欧美三级日韩在线| 国产拍揄自揄精品视频麻豆| 一级女性全黄久久生活片免费| 秋霞电影网一区二区| 成人福利在线看| 欧美一区二区播放| 亚洲激情欧美激情| 国产综合色视频| 欧美午夜精品一区二区三区| 久久久久亚洲综合| 五月激情六月综合| 99久久久久久99| 精品国产乱码91久久久久久网站| 亚洲精品写真福利| 国产一区中文字幕| 欧美日韩成人一区二区| 国产女同互慰高潮91漫画| 人妖欧美一区二区| 欧美日韩中文国产| 亚洲视频你懂的| 国产一区二区三区四区五区美女 | 美女视频一区二区| 色一情一伦一子一伦一区| 欧美大白屁股肥臀xxxxxx| 亚洲黄色录像片| 国产成人日日夜夜| 精品国产成人系列| 亚洲午夜免费视频| 91网上在线视频| 欧美激情一区二区在线| 国产麻豆91精品| 欧美成人一区二区三区片免费| 亚洲精品欧美专区| 99国产精品久| 综合欧美一区二区三区| 国产精品亚洲综合一区在线观看| 日韩精品专区在线影院观看| 日韩电影在线观看一区| 在线播放欧美女士性生活| 亚洲综合激情小说| 在线国产亚洲欧美| 一区二区理论电影在线观看| 91在线云播放| 亚洲精品免费看| av电影在线观看一区| 亚洲欧美在线aaa| 日本韩国精品一区二区在线观看| 国产精品黄色在线观看| 99re66热这里只有精品3直播 | 亚洲综合久久久久| 一本久道中文字幕精品亚洲嫩| 亚洲欧美日韩在线| 欧美色图一区二区三区| 亚洲18影院在线观看| 91精品国产综合久久久蜜臀图片| 免费在线观看一区| 欧美精品一区二区三区视频| 国产一区二区三区精品欧美日韩一区二区三区 | 欧美激情一区二区三区四区| 成人影视亚洲图片在线| 亚洲婷婷在线视频| 欧美区一区二区三区| 五月天欧美精品| 国产无人区一区二区三区| 99久久久久免费精品国产| 亚洲国产日韩a在线播放| 制服丝袜激情欧洲亚洲| 国产专区综合网| 亚洲少妇最新在线视频| 欧美午夜精品一区二区三区| 美女视频一区二区| 中文字幕在线观看一区二区| 欧美色图在线观看| 国产伦精品一区二区三区视频青涩| 亚洲欧洲日韩av| 欧美精品日韩精品| 国产成人精品免费视频网站| 亚洲午夜久久久久久久久电影院| 日韩欧美成人午夜| 色婷婷av一区二区三区大白胸| 热久久久久久久| 亚洲欧美一区二区三区久本道91 | 亚洲日本成人在线观看| 欧美日韩小视频| 成人午夜av在线| 美女网站一区二区| 亚洲欧美偷拍三级| 久久久久久亚洲综合影院红桃| 欧美三级视频在线观看| 成人免费va视频| 蜜臀av一区二区| 亚洲人123区| 亚洲国产精品成人综合色在线婷婷| 欧美三级在线播放| 91视频.com| 成人视屏免费看| 国产精品一区专区| 日本午夜一本久久久综合| 伊人夜夜躁av伊人久久| 日本一区二区三区四区| 精品日韩成人av| 制服丝袜亚洲网站| 欧洲国产伦久久久久久久| 成人久久18免费网站麻豆| 久久99久久精品| 日日摸夜夜添夜夜添国产精品| 亚洲欧美一区二区三区久本道91| 亚洲国产精品精华液ab| 国产午夜精品久久久久久久| 日韩欧美亚洲另类制服综合在线| 欧美精品丝袜中出| 欧美性猛片xxxx免费看久爱| 91精品福利在线| 日本精品视频一区二区三区| 91在线porny国产在线看| av在线不卡电影| 91在线观看免费视频| 91欧美一区二区| 在线这里只有精品| 欧美日韩综合在线免费观看| 欧美午夜精品久久久久久超碰| 色94色欧美sute亚洲13| 欧美亚洲日本国产| 欧美亚洲国产一区二区三区va| 在线免费不卡视频| 在线免费不卡电影| 欧美精品九九99久久| 日韩午夜激情av| 2020国产成人综合网| 中文字幕精品在线不卡| 中文字幕永久在线不卡| 一区二区三区精品久久久| 亚洲电影一级片| 亚洲第一综合色| 极品少妇一区二区三区精品视频| 精品一二三四在线| 成人黄色免费短视频| 91热门视频在线观看| 欧美日韩1234| 久久久精品黄色| 亚洲黄网站在线观看| 日韩—二三区免费观看av| 激情国产一区二区| 成人短视频下载| 欧美一区二区在线不卡| 国产人久久人人人人爽| 夜夜嗨av一区二区三区中文字幕| 日韩精品一区第一页| 国产二区国产一区在线观看| 91麻豆精品秘密| 欧美一区二区视频观看视频| 国产日产欧美一区| 午夜精品久久久久久久久| 国产精品影音先锋| 欧美日韩一区不卡| 国产欧美视频在线观看| 亚洲国产精品影院| 国产在线一区二区综合免费视频| 9久草视频在线视频精品| 91精品国产一区二区三区| 国产精品女同一区二区三区| 日本大胆欧美人术艺术动态 | 亚洲精品国产无天堂网2021| 日韩中文字幕91| 99久久伊人网影院| 日韩欧美色综合网站| 一二三区精品福利视频| 精品亚洲porn| 91国产视频在线观看| 久久精品人人爽人人爽| 蜜臀av一区二区|