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

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

?? httpmethodbase.java

?? 高性能分詞算法
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
/* * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//httpclient/src/java/org/apache/commons/httpclient/HttpMethodBase.java,v 1.222 2005/01/14 21:16:40 olegk Exp $ * $Revision: 5562 $ * $Date: 2007-11-16 00:53:10 +0000 (Fri, 16 Nov 2007) $ * * ==================================================================== * *  Copyright 1999-2004 The Apache Software Foundation * *  Licensed 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.ByteArrayInputStream;import java.io.ByteArrayOutputStream;import java.io.IOException;import java.io.InputStream;import java.io.InterruptedIOException;import java.util.Collection;import org.apache.commons.httpclient.auth.AuthState;import org.apache.commons.httpclient.cookie.CookiePolicy;import org.apache.commons.httpclient.cookie.CookieSpec;import org.apache.commons.httpclient.cookie.MalformedCookieException;import org.apache.commons.httpclient.params.HttpMethodParams;import org.apache.commons.httpclient.protocol.Protocol;import org.apache.commons.httpclient.util.EncodingUtil;import org.apache.commons.httpclient.util.ExceptionUtil;import org.apache.commons.logging.Log;import org.apache.commons.logging.LogFactory;/** * An abstract base implementation of HttpMethod. * <p> * At minimum, subclasses will need to override: * <ul> *   <li>{@link #getName} to return the approriate name for this method *   </li> * </ul> * </p> * * <p> * When a method requires additional request headers, subclasses will typically * want to override: * <ul> *   <li>{@link #addRequestHeaders addRequestHeaders(HttpState,HttpConnection)} *      to write those headers *   </li> * </ul> * </p> * * <p> * When a method expects specific response headers, subclasses may want to * override: * <ul> *   <li>{@link #processResponseHeaders processResponseHeaders(HttpState,HttpConnection)} *     to handle those headers *   </li> * </ul> * </p> * * * @author <a href="mailto:remm@apache.org">Remy Maucherat</a> * @author Rodney Waldhoff * @author Sean C. Sullivan * @author <a href="mailto:dion@apache.org">dIon Gillard</a> * @author <a href="mailto:jsdever@apache.org">Jeff Dever</a> * @author <a href="mailto:dims@apache.org">Davanum Srinivas</a> * @author Ortwin Glueck * @author Eric Johnson * @author Michael Becke * @author <a href="mailto:oleg@ural.ru">Oleg Kalnichevski</a> * @author <a href="mailto:mbowler@GargoyleSoftware.com">Mike Bowler</a> * @author <a href="mailto:ggregory@seagullsw.com">Gary Gregory</a> * @author Christian Kohlschuetter * * @version $Revision: 5562 $ $Date: 2007-11-16 00:53:10 +0000 (Fri, 16 Nov 2007) $ */@SuppressWarnings("deprecation") // <- // IA/HERITRIX changepublic abstract class HttpMethodBase implements HttpMethod {    // -------------------------------------------------------------- Constants    /** Log object for this class. */    private static final Log LOG = LogFactory.getLog(HttpMethodBase.class);    // ----------------------------------------------------- Instance variables     /** Request headers, if any. */    private HeaderGroup requestHeaders = new HeaderGroup();    /** The Status-Line from the response. */    private StatusLine statusLine = null;    /** Response headers, if any. */    private HeaderGroup responseHeaders = new HeaderGroup();    /** Response trailer headers, if any. */    private HeaderGroup responseTrailerHeaders = new HeaderGroup();    /** Path of the HTTP method. */    private String path = null;    /** Query string of the HTTP method, if any. */    private String queryString = null;    /** The response body of the HTTP method, assuming it has not be      * intercepted by a sub-class. */    private InputStream responseStream = null;    /** The connection that the response stream was read from. */    private HttpConnection responseConnection = null;    /** Buffer for the response */    private byte[] responseBody = null;    /** True if the HTTP method should automatically follow HTTP redirects.*/    private boolean followRedirects = false;    /** True if the HTTP method should automatically handle    *  HTTP authentication challenges. */    private boolean doAuthentication = true;    /** HTTP protocol parameters. */    private HttpMethodParams params = new HttpMethodParams();    /** Host authentication state */    private AuthState hostAuthState = new AuthState();    /** Proxy authentication state */    private AuthState proxyAuthState = new AuthState();    /** True if this method has already been executed. */    private boolean used = false;    /** Count of how many times did this HTTP method transparently handle     * a recoverable exception. */    private int recoverableExceptionCount = 0;    /** the host for this HTTP method, can be null */    private HttpHost httphost = null;    /**     * Handles method retries     *      * @deprecated no loner used     */    private MethodRetryHandler methodRetryHandler;    /** True if the connection must be closed when no longer needed */    private boolean connectionCloseForced = false;    /** Number of milliseconds to wait for 100-contunue response. */    private static final int RESPONSE_WAIT_TIME_MS = 3000;    /** HTTP protocol version used for execution of this method. */    private HttpVersion effectiveVersion = null;    /** Whether the execution of this method has been aborted */    private transient boolean aborted = false;    /** Whether the HTTP request has been transmitted to the target     * server it its entirety */    private boolean requestSent = false;        /** Actual cookie policy */    private CookieSpec cookiespec = null;    /** Default initial size of the response buffer if content length is unknown. */    private static final int DEFAULT_INITIAL_BUFFER_SIZE = 4*1024; // 4 kB        // ----------------------------------------------------------- Constructors    /**     * No-arg constructor.     */    public HttpMethodBase() {    }    /**     * Constructor specifying a URI.     * It is responsibility of the caller to ensure that URI elements     * (path & query parameters) are properly encoded (URL safe).     *     * @param uri either an absolute or relative URI. The URI is expected     *            to be URL-encoded     *      * @throws IllegalArgumentException when URI is invalid     * @throws IllegalStateException when protocol of the absolute URI is not recognised     */    public HttpMethodBase(String uri)         throws IllegalArgumentException, IllegalStateException {        try {            // create a URI and allow for null/empty uri values            if (uri == null || uri.equals("")) {                uri = "/";            }// BEGIN IA/HERITRIX CHANGES//        setURI(new URI(uri, true));          setURI(new org.archive.net.LaxURI(uri, true));// END IA/HERITRIX CHANGES        } catch (URIException e) {            throw new IllegalArgumentException("Invalid uri '"                 + uri + "': " + e.getMessage()             );        }    }    // ------------------------------------------- Property Setters and Getters    /**     * Obtains the name of the HTTP method as used in the HTTP request line,     * for example <tt>"GET"</tt> or <tt>"POST"</tt>.     *      * @return the name of this method     */    public abstract String getName();    /**     * Returns the URI of the HTTP method     *      * @return The URI     *      * @throws URIException If the URI cannot be created.     *      * @see org.apache.commons.httpclient.HttpMethod#getURI()     */    public URI getURI() throws URIException {        StringBuffer buffer = new StringBuffer();        if (this.httphost != null) {            buffer.append(this.httphost.getProtocol().getScheme());            buffer.append("://");            buffer.append(this.httphost.getHostName());            int port = this.httphost.getPort();            if (port != -1 && port != this.httphost.getProtocol().getDefaultPort()) {                buffer.append(":");                buffer.append(port);            }        }        buffer.append(this.path);        if (this.queryString != null) {            buffer.append('?');            buffer.append(this.queryString);        }//      BEGIN IA/HERITRIX CHANGES//      return new URI(buffer.toString(), true);        return new org.archive.net.LaxURI(buffer.toString(), true);//      END IA/HERITRIX CHANGES    }    /**     * Sets the URI for this method.      *      * @param uri URI to be set      *      * @throws URIException if a URI cannot be set     *      * @since 3.0     */    public void setURI(URI uri) throws URIException {        // only set the host if specified by the URI        if (uri.isAbsoluteURI()) {            this.httphost = new HttpHost(uri);        }        // set the path, defaulting to root        setPath(            uri.getPath() == null            ? "/"            : uri.getEscapedPath()        );        setQueryString(uri.getEscapedQuery());    }     /**     * Sets whether or not the HTTP method should automatically follow HTTP redirects      * (status code 302, etc.)     *      * @param followRedirects <tt>true</tt> if the method will automatically follow redirects,     * <tt>false</tt> otherwise.     */    public void setFollowRedirects(boolean followRedirects) {        this.followRedirects = followRedirects;    }    /**     * Returns <tt>true</tt> if the HTTP method should automatically follow HTTP redirects      * (status code 302, etc.), <tt>false</tt> otherwise.     *      * @return <tt>true</tt> if the method will automatically follow HTTP redirects,      * <tt>false</tt> otherwise.     */    public boolean getFollowRedirects() {        return this.followRedirects;    }    /** Sets whether version 1.1 of the HTTP protocol should be used per default.     *     * @param http11 <tt>true</tt> to use HTTP/1.1, <tt>false</tt> to use 1.0     *      * @deprecated Use {@link HttpMethodParams#setVersion(HttpVersion)}     */    public void setHttp11(boolean http11) {        if (http11) {            this.params.setVersion(HttpVersion.HTTP_1_1);        } else {            this.params.setVersion(HttpVersion.HTTP_1_0);        }     }    /**     * Returns <tt>true</tt> if the HTTP method should automatically handle HTTP      * authentication challenges (status code 401, etc.), <tt>false</tt> otherwise     *     * @return <tt>true</tt> if authentication challenges will be processed      * automatically, <tt>false</tt> otherwise.     *      * @since 2.0     */    public boolean getDoAuthentication() {        return doAuthentication;    }    /**     * Sets whether or not the HTTP method should automatically handle HTTP      * authentication challenges (status code 401, etc.)     *     * @param doAuthentication <tt>true</tt> to process authentication challenges     * authomatically, <tt>false</tt> otherwise.     *      * @since 2.0     */    public void setDoAuthentication(boolean doAuthentication) {        this.doAuthentication = doAuthentication;    }    // ---------------------------------------------- Protected Utility Methods    /**     * Returns <tt>true</tt> if version 1.1 of the HTTP protocol should be      * used per default, <tt>false</tt> if version 1.0 should be used.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲福利视频一区| 成人黄色大片在线观看| 国产高清亚洲一区| 91久久精品一区二区二区| 久久综合成人精品亚洲另类欧美 | 精品日本一线二线三线不卡 | 精品国产在天天线2019| 亚洲男同性视频| 国产高清不卡二三区| 欧美老肥妇做.爰bbww视频| 国产精品美女久久久久久久久久久| 香蕉乱码成人久久天堂爱免费| 国产91精品一区二区麻豆网站| 欧美精品一卡两卡| 最新国产成人在线观看| 国产精品一二三四五| 欧美乱妇23p| 亚洲欧美日韩人成在线播放| 国产河南妇女毛片精品久久久| 91精品国产综合久久蜜臀| 亚洲欧美日韩国产综合| 不卡欧美aaaaa| 国产午夜久久久久| 久久精品国产99国产| 在线不卡中文字幕| 亚洲在线中文字幕| 在线观看免费视频综合| 亚洲女性喷水在线观看一区| 成人av午夜电影| 国产免费久久精品| 国产高清在线观看免费不卡| 欧美精品一区二区三区视频 | 日韩欧美一卡二卡| 免费不卡在线视频| 3atv一区二区三区| 日本美女一区二区三区| 欧美一区日韩一区| 麻豆视频一区二区| 26uuu亚洲| 粉嫩在线一区二区三区视频| 国产精品理论在线观看| 99久久99久久精品免费观看| 日韩毛片高清在线播放| 色噜噜狠狠成人中文综合| 亚洲亚洲精品在线观看| 欧美久久久一区| 麻豆freexxxx性91精品| 久久久国产精品午夜一区ai换脸| 国产馆精品极品| 亚洲久本草在线中文字幕| 色婷婷亚洲综合| 亚洲成av人片在线| 精品国产免费久久| www..com久久爱| 亚洲国产一区二区三区青草影视 | 免费美女久久99| 久久久午夜电影| 99久久久久免费精品国产| 亚洲美女淫视频| 91精品麻豆日日躁夜夜躁| 精彩视频一区二区三区| 国产精品电影一区二区三区| 在线观看亚洲一区| 经典三级一区二区| 中文字幕一区av| 91麻豆精品国产91久久久| 国产伦理精品不卡| 一区二区成人在线观看| 日韩视频免费观看高清完整版| 丁香六月久久综合狠狠色| 亚洲一本大道在线| 国产欧美一区二区三区在线老狼| 91同城在线观看| 蜜臀va亚洲va欧美va天堂| 国产精品久久一级| 欧美一区二区三区影视| aaa欧美色吧激情视频| 免费人成网站在线观看欧美高清| 亚洲国产高清aⅴ视频| 欧美日韩美少妇| av亚洲精华国产精华精| 精品伊人久久久久7777人| 亚洲美女区一区| 国产日韩在线不卡| 91精品国产色综合久久久蜜香臀| www.日韩av| 国产激情偷乱视频一区二区三区| 亚洲mv在线观看| 综合网在线视频| 久久久av毛片精品| 日韩欧美久久一区| 欧美精品久久久久久久多人混战 | 粉嫩欧美一区二区三区高清影视| 亚洲小说欧美激情另类| 亚洲国产精品ⅴa在线观看| 91精品国产欧美一区二区18| 色狠狠av一区二区三区| 成人a区在线观看| 国产精品一区在线观看乱码 | 欧美成人一级视频| 欧美日韩aaa| 欧美综合一区二区三区| 99re成人精品视频| 成人av在线资源网站| 国产剧情一区在线| 精彩视频一区二区| 韩国中文字幕2020精品| 久久激情五月激情| 日本在线播放一区二区三区| 亚洲一区二区三区精品在线| 亚洲日韩欧美一区二区在线| 欧美国产在线观看| 国产精品亲子伦对白| 中文字幕av一区二区三区| 久久久久国产精品麻豆| 久久久久久亚洲综合| 久久久久99精品一区| 国产女人水真多18毛片18精品视频 | 国产福利91精品| 精品一区二区三区蜜桃| 精品一区二区在线视频| 久久成人18免费观看| 麻豆一区二区三| 韩国精品主播一区二区在线观看| 喷水一区二区三区| 精品一区二区三区欧美| 国产一区二区三区美女| 国产成a人亚洲精品| 成人av网址在线观看| 91免费看视频| 欧美视频精品在线观看| 欧美一区二区人人喊爽| 精品国产伦一区二区三区观看体验| 精品国精品自拍自在线| 国产三级久久久| 亚洲黄色小视频| 轻轻草成人在线| 国产成人午夜高潮毛片| a4yy欧美一区二区三区| 欧美视频一区二区| 日韩一级大片在线| 国产欧美日韩不卡免费| 亚洲天堂网中文字| 热久久久久久久| 国产乱子轮精品视频| 色婷婷激情久久| 精品久久久久久久久久久久久久久久久 | 欧美国产日韩精品免费观看| 日韩一区在线播放| 日本亚洲电影天堂| 成人黄色网址在线观看| 欧美在线看片a免费观看| 日韩欧美国产麻豆| 亚洲男人的天堂在线aⅴ视频| 天使萌一区二区三区免费观看| 久久成人久久爱| 99re这里只有精品6| 欧美嫩在线观看| 国产精品三级av在线播放| 亚洲va在线va天堂| 成人午夜视频免费看| 欧美日本乱大交xxxxx| 国产精品丝袜久久久久久app| 亚洲a一区二区| 99视频有精品| 精品国产网站在线观看| 亚洲国产另类精品专区| 成人精品在线视频观看| 日韩欧美国产一二三区| 一区二区三区在线视频免费| 国产呦萝稀缺另类资源| 欧美亚洲自拍偷拍| 国产精品国产三级国产普通话99| 日欧美一区二区| 色狠狠av一区二区三区| 国产精品无遮挡| 美女视频一区在线观看| 欧美视频日韩视频在线观看| 欧美激情在线一区二区三区| 午夜影视日本亚洲欧洲精品| 不卡av电影在线播放| 久久久不卡网国产精品二区| 欧美aa在线视频| 欧美人动与zoxxxx乱| 亚洲你懂的在线视频| 成人av午夜电影| 国产嫩草影院久久久久| 国内成人精品2018免费看| 欧美精品一二三四| 亚洲久草在线视频| 91同城在线观看| 亚洲精品欧美专区| 99久久99久久精品免费看蜜桃| 国产日产欧美精品一区二区三区| 久久不见久久见中文字幕免费| 欧美精品在线观看一区二区| 亚洲国产日韩一级| 欧美日韩一级片网站| 亚洲亚洲精品在线观看| 欧美日韩在线播放三区|