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

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

?? httpconnection.java

?? 高性能分詞算法
?? JAVA
?? 第 1 頁 / 共 4 頁
字號:
/* * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//httpclient/src/java/org/apache/commons/httpclient/HttpConnection.java,v 1.107 2005/01/14 21:30:59 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.BufferedInputStream;import java.io.BufferedOutputStream;import java.io.IOException;import java.io.InputStream;import java.io.InterruptedIOException;import java.io.OutputStream;import java.lang.reflect.Method;import java.net.InetAddress;import java.net.Socket;import java.net.SocketException;import org.apache.commons.httpclient.params.HttpConnectionParams;import org.apache.commons.httpclient.protocol.Protocol;import org.apache.commons.httpclient.protocol.ProtocolSocketFactory;import org.apache.commons.httpclient.protocol.SecureProtocolSocketFactory;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;import org.archive.util.HttpRecorder; // <- // IA/HERITRIX import/** * An abstraction of an HTTP {@link InputStream} and {@link OutputStream} * pair, together with the relevant attributes. * <p> * The following options are set on the socket before getting the input/output  * streams in the {@link #open()} method: * <table border=1><tr> *    <th>Socket Method *    <th>Sockets Option *    <th>Configuration * </tr><tr> *    <td>{@link java.net.Socket#setTcpNoDelay(boolean)} *    <td>SO_NODELAY *    <td>{@link HttpConnectionParams#setTcpNoDelay(boolean)} * </tr><tr> *    <td>{@link java.net.Socket#setSoTimeout(int)} *    <td>SO_TIMEOUT *    <td>{@link HttpConnectionParams#setSoTimeout(int)} * </tr><tr> *    <td>{@link java.net.Socket#setSendBufferSize(int)} *    <td>SO_SNDBUF *    <td>{@link HttpConnectionParams#setSendBufferSize(int)} * </tr><tr> *    <td>{@link java.net.Socket#setReceiveBufferSize(int)} *    <td>SO_RCVBUF *    <td>{@link HttpConnectionParams#setReceiveBufferSize(int)} * </tr></table> * * @author Rod Waldhoff * @author Sean C. Sullivan * @author Ortwin Glueck * @author <a href="mailto:jsdever@apache.org">Jeff Dever</a> * @author <a href="mailto:mbowler@GargoyleSoftware.com">Mike Bowler</a> * @author <a href="mailto:oleg@ural.ru">Oleg Kalnichevski</a> * @author Michael Becke * @author Eric E Johnson * @author Laura Werner *  * @version   $Revision: 5562 $ $Date: 2007-11-16 00:53:10 +0000 (Fri, 16 Nov 2007) $ */public class HttpConnection {    // ----------------------------------------------------------- Constructors    /**     * Creates a new HTTP connection for the given host and port.     *     * @param host the host to connect to     * @param port the port to connect to     */    public HttpConnection(String host, int port) {        this(null, -1, host, null, port, Protocol.getProtocol("http"));    }    /**     * Creates a new HTTP connection for the given host and port     * using the given protocol.     *     * @param host the host to connect to     * @param port the port to connect to     * @param protocol the protocol to use     */    public HttpConnection(String host, int port, Protocol protocol) {        this(null, -1, host, null, port, protocol);    }    /**     * Creates a new HTTP connection for the given host with the virtual      * alias and port using given protocol.     *     * @param host the host to connect to     * @param virtualHost the virtual host requests will be sent to     * @param port the port to connect to     * @param protocol the protocol to use     */    public HttpConnection(String host, String virtualHost, int port, Protocol protocol) {        this(null, -1, host, virtualHost, port, protocol);    }    /**     * Creates a new HTTP connection for the given host and port via the      * given proxy host and port using the default protocol.     *     * @param proxyHost the host to proxy via     * @param proxyPort the port to proxy via     * @param host the host to connect to     * @param port the port to connect to     */    public HttpConnection(        String proxyHost,        int proxyPort,        String host,        int port) {        this(proxyHost, proxyPort, host, null, port, Protocol.getProtocol("http"));    }    /**     * Creates a new HTTP connection for the given host configuration.     *      * @param hostConfiguration the host/proxy/protocol to use     */    public HttpConnection(HostConfiguration hostConfiguration) {        this(hostConfiguration.getProxyHost(),             hostConfiguration.getProxyPort(),             hostConfiguration.getHost(),             hostConfiguration.getPort(),             hostConfiguration.getProtocol());        this.localAddress = hostConfiguration.getLocalAddress();    }    /**     * Creates a new HTTP connection for the given host with the virtual      * alias and port via the given proxy host and port using the given      * protocol.     *      * @param proxyHost the host to proxy via     * @param proxyPort the port to proxy via     * @param host the host to connect to. Parameter value must be non-null.     * @param virtualHost No longer applicable.      * @param port the port to connect to     * @param protocol The protocol to use. Parameter value must be non-null.     *      * @deprecated use #HttpConnection(String, int, String, int, Protocol)     */    public HttpConnection(        String proxyHost,        int proxyPort,        String host,        String virtualHost,        int port,        Protocol protocol) {        this(proxyHost, proxyPort, host, port, protocol);    }    /**     * Creates a new HTTP connection for the given host with the virtual      * alias and port via the given proxy host and port using the given      * protocol.     *      * @param proxyHost the host to proxy via     * @param proxyPort the port to proxy via     * @param host the host to connect to. Parameter value must be non-null.     * @param port the port to connect to     * @param protocol The protocol to use. Parameter value must be non-null.     */    public HttpConnection(        String proxyHost,        int proxyPort,        String host,        int port,        Protocol protocol) {        if (host == null) {            throw new IllegalArgumentException("host parameter is null");        }        if (protocol == null) {            throw new IllegalArgumentException("protocol is null");        }        proxyHostName = proxyHost;        proxyPortNumber = proxyPort;        hostName = host;        portNumber = protocol.resolvePort(port);        protocolInUse = protocol;    }    // ------------------------------------------ Attribute Setters and Getters    /**     * Returns the connection socket.     *     * @return the socket.     *      * @since 3.0     */    protected Socket getSocket() {        return this.socket;    }    /**     * Returns the host.     *     * @return the host.     */    public String getHost() {        return hostName;    }    /**     * Sets the host to connect to.     *     * @param host the host to connect to. Parameter value must be non-null.     * @throws IllegalStateException if the connection is already open     */    public void setHost(String host) throws IllegalStateException {        if (host == null) {            throw new IllegalArgumentException("host parameter is null");        }        assertNotOpen();        hostName = host;    }    /**     * Returns the target virtual host.     *     * @return the virtual host.     *      * @deprecated no longer applicable     */    public String getVirtualHost() {        return this.hostName;    }    /**     * Sets the virtual host to target.     *     * @param host the virtual host name that should be used instead of      *        physical host name when sending HTTP requests. Virtual host      *        name can be set to <tt> null</tt> if virtual host name is not     *        to be used     *      * @throws IllegalStateException if the connection is already open     *      * @deprecated no longer applicable     */    public void setVirtualHost(String host) throws IllegalStateException {        assertNotOpen();    }    /**     * Returns the port of the host.     *     * If the port is -1 (or less than 0) the default port for     * the current protocol is returned.     *     * @return the port.     */    public int getPort() {        if (portNumber < 0) {            return isSecure() ? 443 : 80;        } else {            return portNumber;        }    }    /**     * Sets the port to connect to.     *     * @param port the port to connect to     *      * @throws IllegalStateException if the connection is already open     */    public void setPort(int port) throws IllegalStateException {        assertNotOpen();        portNumber = port;    }    /**     * Returns the proxy host.     *     * @return the proxy host.     */    public String getProxyHost() {        return proxyHostName;    }    /**     * Sets the host to proxy through.     *     * @param host the host to proxy through.     *      * @throws IllegalStateException if the connection is already open     */    public void setProxyHost(String host) throws IllegalStateException {        assertNotOpen();        proxyHostName = host;    }    /**     * Returns the port of the proxy host.     *     * @return the proxy port.     */    public int getProxyPort() {        return proxyPortNumber;    }    /**     * Sets the port of the host to proxy through.     *     * @param port the port of the host to proxy through.     *      * @throws IllegalStateException if the connection is already open     */    public void setProxyPort(int port) throws IllegalStateException {        assertNotOpen();        proxyPortNumber = port;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久亚区不卡日本| 欧美一二三区在线| 亚洲精品国产精华液| 91天堂素人约啪| 亚洲成人资源网| 欧美精品一区二区三区蜜桃| 国产一区二区三区不卡在线观看| 国产精品国产三级国产aⅴ原创| 色综合天天综合在线视频| 亚洲国产日韩一区二区| 日韩欧美国产综合一区| 国产不卡视频在线播放| 自拍偷拍亚洲综合| 欧美一区二区精品久久911| 国产成人免费视频精品含羞草妖精| 国产精品久久毛片| 在线成人av网站| 国产成人免费9x9x人网站视频| 一区二区三区在线观看国产| 在线成人小视频| 成人国产精品视频| 午夜电影网一区| 中文av字幕一区| 欧美高清激情brazzers| 高清不卡一二三区| 婷婷综合久久一区二区三区| 久久久精品免费网站| 欧美丝袜丝nylons| 粉嫩一区二区三区性色av| 亚洲电影一级片| 国产精品麻豆网站| 欧美一区二区三区精品| 色综合中文字幕| 国产麻豆视频一区二区| 亚洲第一综合色| ...中文天堂在线一区| 欧美一区二区播放| 在线观看一区二区视频| 国产jizzjizz一区二区| 免费看日韩精品| 亚洲一区视频在线观看视频| 国产精品乱码一区二区三区软件| 欧美高清一级片在线| 色999日韩国产欧美一区二区| 国产一区二区三区在线观看精品 | 亚洲欧美另类小说视频| 精品1区2区在线观看| 欧美曰成人黄网| av动漫一区二区| 国产精品一区二区三区乱码| 婷婷综合久久一区二区三区| 一个色综合av| 亚洲精品中文在线| 中文字幕亚洲精品在线观看| 久久网站热最新地址| 日韩欧美一区二区视频| 欧美肥大bbwbbw高潮| 欧美少妇bbb| 色噜噜狠狠成人网p站| 国产不卡高清在线观看视频| 精品一区二区三区视频| 日本欧美久久久久免费播放网| 怡红院av一区二区三区| 国产精品成人在线观看| 国产欧美日本一区二区三区| 久久精品一区二区三区四区| 精品粉嫩超白一线天av| 欧美不卡在线视频| 日韩免费一区二区| 欧美一区二区三区日韩| 欧美日本在线一区| 欧美精选一区二区| 在线成人小视频| 日韩欧美中文字幕公布| 51精品秘密在线观看| 欧美一级欧美一级在线播放| 这里是久久伊人| 日韩欧美亚洲国产另类| 日韩一级黄色大片| 日韩欧美国产精品| 久久新电视剧免费观看| 国产日产欧美一区| 中文字幕亚洲在| 一区二区三区久久久| 亚洲综合清纯丝袜自拍| 亚洲mv在线观看| 久久精品国产久精国产| 狠狠色狠狠色综合系列| 国产高清精品久久久久| 99久久婷婷国产精品综合| 色综合激情久久| 欧美日韩精品一区二区在线播放| 欧美日本在线观看| 亚洲精品在线观看视频| 日本一区二区免费在线观看视频| 中文字幕一区二区三区在线播放| 一区二区三区国产精华| 奇米精品一区二区三区在线观看一| 日韩不卡在线观看日韩不卡视频| 韩日精品视频一区| 99久久er热在这里只有精品15| 在线亚洲高清视频| 日韩欧美国产麻豆| 亚洲婷婷综合久久一本伊一区 | 国产亚洲欧美日韩日本| 综合久久一区二区三区| 日韩高清不卡一区二区三区| 国产一区二区三区黄视频| 99久久国产综合精品女不卡| 777欧美精品| 国产欧美日韩卡一| 亚洲成人免费视频| 国产一区二区三区视频在线播放| 97超碰欧美中文字幕| 日韩一区二区电影网| 国产精品激情偷乱一区二区∴| 午夜影院久久久| 成人小视频免费观看| 欧美日韩电影在线播放| 中文字幕av在线一区二区三区| 五月婷婷色综合| 成人avav影音| 精品国产精品网麻豆系列| 亚洲日本在线视频观看| 狠狠色丁香久久婷婷综| 欧美图片一区二区三区| 国产欧美精品在线观看| 日韩精品视频网| 91成人看片片| 国产精品三级视频| 麻豆精品视频在线| 欧美午夜精品一区二区蜜桃| 国产喂奶挤奶一区二区三区| 日本不卡中文字幕| 日本道精品一区二区三区| 久久精品亚洲国产奇米99| 香蕉影视欧美成人| 色94色欧美sute亚洲线路一久 | 26uuu色噜噜精品一区| 一区二区三区免费观看| 成人爽a毛片一区二区免费| 日韩午夜在线观看视频| 亚洲成人午夜影院| 91看片淫黄大片一级| 欧美激情综合在线| 国产精品资源在线观看| 日韩精品一区在线观看| 日本大胆欧美人术艺术动态| 欧美午夜电影一区| 亚洲乱码国产乱码精品精可以看| 粉嫩aⅴ一区二区三区四区五区| 精品久久久久久久久久久久久久久 | 日本久久电影网| 国产精品天天看| 成人午夜在线视频| 国产欧美精品一区二区色综合| 麻豆视频观看网址久久| 91精品国产欧美一区二区18 | 洋洋av久久久久久久一区| 91色.com| 亚洲精品国产品国语在线app| 97久久超碰国产精品电影| 国产精品成人网| 99视频精品免费视频| 中文一区二区在线观看| 国产999精品久久久久久| 久久精品无码一区二区三区| 国产一区二区剧情av在线| 久久亚洲精华国产精华液| 国产精品一区三区| 国产精品乱人伦中文| 色综合天天综合网天天狠天天| 亚洲欧美一区二区三区国产精品 | 精品毛片乱码1区2区3区| 极品尤物av久久免费看| 久久品道一品道久久精品| 成人综合在线视频| 亚洲精品免费播放| 欧美理论片在线| 久久成人精品无人区| 久久久av毛片精品| av在线不卡电影| 伊人夜夜躁av伊人久久| 欧美久久久久免费| 国产一区中文字幕| 亚洲青青青在线视频| 欧美日韩精品一区二区三区蜜桃 | 97se亚洲国产综合在线| 亚洲一区av在线| 精品少妇一区二区三区在线视频| 国产成人在线观看| 樱桃视频在线观看一区| 欧美一级理论性理论a| 国产福利不卡视频| 一区二区三区精品在线观看| 精品国产一区二区三区久久久蜜月| 国产成人av影院| 亚洲国产精品一区二区久久| 精品久久久久久无| 色88888久久久久久影院按摩|