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

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

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

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
高清在线不卡av| 亚洲午夜电影网| 国产xxx精品视频大全| 久久午夜色播影院免费高清| 国产69精品久久久久777| 中文字幕第一区二区| 99精品视频中文字幕| 尤物视频一区二区| 91精品国产福利| 韩国v欧美v亚洲v日本v| 中文字幕亚洲在| 欧美日韩和欧美的一区二区| 免费欧美在线视频| 国产精品久久久久久亚洲毛片| 色综合中文字幕国产| 一区二区三区国产精华| 91精品国产91久久久久久一区二区 | 日韩欧美一级在线播放| 国产成人免费在线视频| 亚洲男人的天堂av| 日韩欧美亚洲一区二区| 成人国产精品免费观看视频| 亚洲一区二区三区国产| 久久久久久99久久久精品网站| eeuss鲁一区二区三区| 亚洲va国产va欧美va观看| 久久综合色婷婷| 欧美亚洲综合色| 国内成人精品2018免费看| 亚洲日本韩国一区| 精品美女在线播放| 日本道色综合久久| 狠狠色丁香婷综合久久| 一二三四社区欧美黄| 久久久久久久久久久久久夜| 欧美精品黑人性xxxx| 粉嫩aⅴ一区二区三区四区五区| 亚洲综合久久久| 国产欧美日韩三区| 欧美一级高清大全免费观看| 99精品久久只有精品| 老司机免费视频一区二区三区| 亚洲乱码国产乱码精品精小说 | 在线视频国内一区二区| 国产一区二区三区在线观看精品 | 美腿丝袜亚洲一区| 一区二区三区蜜桃| 国产精品免费观看视频| 亚洲精品一线二线三线| 欧美男女性生活在线直播观看| 成人午夜av影视| 国产一区视频在线看| 婷婷丁香久久五月婷婷| 亚洲欧美激情一区二区| 欧美国产视频在线| 久久久精品国产99久久精品芒果| 欧美高清视频www夜色资源网| 91色视频在线| av福利精品导航| 成人免费毛片a| 国产99久久久久| 韩国精品在线观看| 久久国产精品区| 久久精品久久99精品久久| 日韩国产精品91| 三级久久三级久久| 偷偷要91色婷婷| 五月婷婷欧美视频| 日韩中文字幕麻豆| 婷婷丁香激情综合| 男人操女人的视频在线观看欧美| 亚洲国产精品视频| 性欧美大战久久久久久久久| 亚洲精品一二三区| 亚洲一区二三区| 亚洲国产成人91porn| 亚洲第四色夜色| 日本欧美久久久久免费播放网| 亚洲国产成人av网| 日韩av一区二区在线影视| 日韩福利视频导航| 精品一区二区av| 国产呦萝稀缺另类资源| 国产精品白丝jk黑袜喷水| 国产成人夜色高潮福利影视| 国产精品白丝jk白祙喷水网站| 国产二区国产一区在线观看| 福利一区在线观看| 91在线无精精品入口| 99国内精品久久| 欧美午夜在线观看| 欧美一卡在线观看| 国产午夜精品福利| 国产精品福利影院| 亚洲黄色片在线观看| 婷婷久久综合九色综合绿巨人| 国产不卡一区视频| www.色综合.com| 欧美性欧美巨大黑白大战| 日韩亚洲欧美高清| 日本一区二区电影| 亚洲国产美女搞黄色| 美女视频黄免费的久久| 国产成人自拍高清视频在线免费播放| 国产成人在线观看| 欧美系列亚洲系列| 日韩免费电影一区| 国产精品久久久久一区二区三区共| 一区二区三区 在线观看视频| 亚洲超碰精品一区二区| 国产又粗又猛又爽又黄91精品| 99久久国产免费看| 欧美一级免费大片| 国产三级精品三级| 亚洲3atv精品一区二区三区| 国产一区二区按摩在线观看| 99精品黄色片免费大全| 日韩三级免费观看| 日韩美女视频一区| 美女免费视频一区| 91麻豆免费视频| 精品理论电影在线| 一区二区三区在线免费观看 | 久久网站热最新地址| 亚洲精品中文字幕乱码三区| 久久精品av麻豆的观看方式| 91丨国产丨九色丨pron| 精品国产网站在线观看| 亚洲综合男人的天堂| 国产成人综合亚洲网站| 91精品黄色片免费大全| 成人欧美一区二区三区在线播放| 久久精品国产77777蜜臀| 欧美在线影院一区二区| 国产欧美视频在线观看| 天天影视涩香欲综合网| 成人动漫精品一区二区| 精品处破学生在线二十三| 亚洲成在人线免费| 91免费观看国产| 国产视频一区在线播放| 午夜精品久久久久| 91女厕偷拍女厕偷拍高清| 久久久久久久久久久99999| 日产国产高清一区二区三区| 欧美午夜影院一区| 亚洲黄一区二区三区| 国产成人av一区| 日韩一区二区在线看片| 亚洲大片在线观看| 色综合久久中文综合久久97| 国产午夜精品一区二区三区嫩草| 毛片一区二区三区| 欧美一区二区三区四区五区| 亚洲成人免费影院| 欧美在线观看你懂的| 亚洲免费观看高清完整版在线观看| 丁香五精品蜜臀久久久久99网站| 久久色在线视频| 激情久久五月天| 久久夜色精品一区| 国产一本一道久久香蕉| 日韩精品一区二区三区中文不卡| 国产精品亚洲第一区在线暖暖韩国 | 日本道在线观看一区二区| 国产精品视频yy9299一区| 国产精品影视在线观看| 久久免费偷拍视频| 成人永久免费视频| 欧美国产一区二区在线观看| 国产精品一级在线| 欧美—级在线免费片| 成人精品视频一区二区三区尤物| 国产精品久久一级| 91社区在线播放| 亚洲综合色视频| 欧美精品久久久久久久多人混战| 秋霞国产午夜精品免费视频| 日韩一区二区三| 国产一区二区三区免费在线观看| 久久老女人爱爱| 成人av在线播放网址| 亚洲欧美日韩国产手机在线| 欧美丝袜丝交足nylons图片| 午夜电影久久久| www久久精品| 99久久精品99国产精品| 亚洲高清免费在线| 欧美成人女星排行榜| 成人av资源站| 亚洲午夜久久久久| 精品久久人人做人人爰| av亚洲精华国产精华精华 | 欧美夫妻性生活| 国产一区二区在线看| 亚洲三级久久久| 欧美高清视频www夜色资源网| 国产专区综合网| 一区二区三区在线视频观看58| 欧美一区二区三区四区五区 |