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

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

?? httphost.java

?? Light in the box 抓取程序。 使用HttpClient
?? JAVA
字號:
/* * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//httpclient/src/java/org/apache/commons/httpclient/HttpHost.java,v 1.3 2005/01/14 21:16:40 olegk Exp $ * $Revision: 510587 $ * $Date: 2007-02-22 17:56:08 +0100 (Thu, 22 Feb 2007) $ * * ==================================================================== * *  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;import org.apache.commons.httpclient.protocol.Protocol;import org.apache.commons.httpclient.util.LangUtils;/** * Holds all of the variables needed to describe an HTTP connection to a host. This includes  * remote host, port and protocol. *  * @author <a href="mailto:becke@u.washington.edu">Michael Becke</a> * @author <a href="mailto:mbowler@GargoyleSoftware.com">Mike Bowler</a> * @author <a href="mailto:oleg@ural.ru">Oleg Kalnichevski</a> * @author Laura Werner *  * @since 3.0  */public class HttpHost implements Cloneable {    /** The host to use. */    private String hostname = null;    /** The port to use. */    private int port = -1;    /** The protocol */    private Protocol protocol = null;    /**     * Constructor for HttpHost.     *        * @param hostname the hostname (IP or DNS name). Can be <code>null</code>.     * @param port the port. Value <code>-1</code> can be used to set default protocol port     * @param protocol the protocol. Value <code>null</code> can be used to set default protocol     */    public HttpHost(final String hostname, int port, final Protocol protocol) {        super();        if (hostname == null) {            throw new IllegalArgumentException("Host name may not be null");        }        if (protocol == null) {            throw new IllegalArgumentException("Protocol may not be null");        }        this.hostname = hostname;        this.protocol = protocol;        if (port >= 0) {            this.port = port;        } else {            this.port = this.protocol.getDefaultPort();        }    }    /**     * Constructor for HttpHost.     *        * @param hostname the hostname (IP or DNS name). Can be <code>null</code>.     * @param port the port. Value <code>-1</code> can be used to set default protocol port     */    public HttpHost(final String hostname, int port) {        this(hostname, port, Protocol.getProtocol("http"));    }        /**     * Constructor for HttpHost.     *        * @param hostname the hostname (IP or DNS name). Can be <code>null</code>.     */    public HttpHost(final String hostname) {        this(hostname, -1, Protocol.getProtocol("http"));    }        /**     * URI constructor for HttpHost.     *        * @param uri the URI.     */    public  HttpHost(final URI uri) throws URIException {        this(uri.getHost(), uri.getPort(), Protocol.getProtocol(uri.getScheme()));    }    /**     * Copy constructor for HttpHost     *      * @param httphost the HTTP host to copy details from     */    public HttpHost (final HttpHost httphost) {        super();        init(httphost);    }    private void init(final HttpHost httphost) {        this.hostname = httphost.hostname;        this.port = httphost.port;        this.protocol = httphost.protocol;    }    /**     * @throws CloneNotSupportedException      * @see java.lang.Object#clone()     */    public Object clone() throws CloneNotSupportedException {        HttpHost copy = (HttpHost) super.clone();        copy.init(this);        return copy;    }            /**     * Returns the host name (IP or DNS name).     *      * @return the host name (IP or DNS name), or <code>null</code> if not set     */    public String getHostName() {        return this.hostname;    }    /**     * Returns the port.     *      * @return the host port, or <code>-1</code> if not set     */    public int getPort() {        return this.port;    }    /**     * Returns the protocol.     * @return The protocol.     */    public Protocol getProtocol() {        return this.protocol;    }    /**     * Return the host uri.     *      * @return The host uri.     */    public String toURI() {        StringBuffer buffer = new StringBuffer(50);                buffer.append(this.protocol.getScheme());        buffer.append("://");        buffer.append(this.hostname);        if (this.port != this.protocol.getDefaultPort()) {            buffer.append(':');            buffer.append(this.port);        }        return buffer.toString();    }    /**     * @see java.lang.Object#toString()     */    public String toString() {        StringBuffer buffer = new StringBuffer(50);                buffer.append(toURI());        return buffer.toString();    }            /**     * @see java.lang.Object#equals(java.lang.Object)     */    public boolean equals(final Object o) {                if (o instanceof HttpHost) {            // shortcut if we're comparing with ourselves            if (o == this) {                 return true;            }            HttpHost that = (HttpHost) o;            if (!this.hostname.equalsIgnoreCase(that.hostname)) {                return false;            }            if (this.port != that.port) {                return false;            }            if (!this.protocol.equals(that.protocol)) {                return false;            }            // everything matches            return true;        } else {            return false;        }    }    /**     * @see java.lang.Object#hashCode()     */    public int hashCode() {        int hash = LangUtils.HASH_SEED;        hash = LangUtils.hashCode(hash, this.hostname);        hash = LangUtils.hashCode(hash, this.port);        hash = LangUtils.hashCode(hash, this.protocol);        return hash;    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲嫩草精品久久| 成人免费毛片高清视频| 韩国午夜理伦三级不卡影院| 欧美日韩在线播放| 国产亚洲综合av| 偷拍自拍另类欧美| 成人激情综合网站| 精品三级在线看| 午夜免费久久看| 成人免费视频播放| 欧美xxx久久| 亚洲成av人片一区二区梦乃| 国产成人av一区二区三区在线观看| 欧美日韩三级一区二区| 亚洲欧美日韩国产综合| 国产69精品久久久久777| 日韩一区二区三区免费看| 一区二区三区蜜桃| 99久久免费精品高清特色大片| 欧美精品一区二区三| 五月天久久比比资源色| 在线观看一区日韩| 亚洲丝袜自拍清纯另类| 粉嫩av亚洲一区二区图片| 欧美mv日韩mv| 男男成人高潮片免费网站| 欧美天堂一区二区三区| 亚洲一区二区在线观看视频 | 亚洲网友自拍偷拍| 97精品久久久久中文字幕| 国产精品免费av| 岛国av在线一区| 亚洲国产精品传媒在线观看| 国产精品亚洲第一| 欧美国产日韩一二三区| 成人午夜伦理影院| 亚洲欧洲日韩av| 91论坛在线播放| 亚洲精品中文在线影院| 欧美在线视频你懂得| 性做久久久久久| 5858s免费视频成人| 日韩精品午夜视频| 欧美大片在线观看一区| 国产在线不卡视频| 亚洲国产精品成人综合| 91麻豆国产自产在线观看| 一区二区激情小说| 欧美一区日本一区韩国一区| 久久99精品久久只有精品| 欧美成人免费网站| 成人综合婷婷国产精品久久蜜臀 | 成人午夜激情片| 亚洲色图19p| 欧美日韩精品一二三区| 日本成人中文字幕| 国产亚洲一区二区在线观看| 国产精品小仙女| 亚洲女同ⅹxx女同tv| 欧美精品v国产精品v日韩精品| 精品亚洲成a人在线观看| 国产三级精品在线| 色av综合在线| 蜜臀va亚洲va欧美va天堂| 久久精品亚洲精品国产欧美kt∨| eeuss鲁一区二区三区| 亚洲午夜久久久| 久久婷婷综合激情| 91久久免费观看| 极品瑜伽女神91| 亚洲黄色录像片| 精品国产青草久久久久福利| av不卡在线观看| 日韩av一级片| 亚洲婷婷国产精品电影人久久| 欧美日韩国产高清一区二区| 国产成人综合在线观看| 亚洲一区二区三区四区中文字幕| 精品福利一区二区三区免费视频| av在线播放不卡| 另类调教123区| 亚洲精选在线视频| 久久精品人人做人人综合| 欧美日韩国产不卡| av激情综合网| 久久99久久精品| 亚洲一区二区综合| 国产精品污www在线观看| 日韩精品一区国产麻豆| 色哟哟国产精品| 国产高清在线观看免费不卡| 亚洲成a人片在线观看中文| 国产精品亲子伦对白| 精品国产乱码91久久久久久网站| 在线观看视频一区二区| 成人免费毛片嘿嘿连载视频| 国产一区二区主播在线| 视频一区欧美日韩| 亚洲一二三级电影| 亚洲男同性视频| 国产精品色哟哟网站| 久久精品欧美日韩| 久久网站热最新地址| 欧美不卡在线视频| 欧美电视剧在线观看完整版| 欧美疯狂做受xxxx富婆| 欧美伦理视频网站| 欧美日韩中文另类| 欧美在线高清视频| 欧美系列一区二区| 欧美日韩美少妇| 欧美日韩免费高清一区色橹橹 | 蜜臀av性久久久久蜜臀aⅴ流畅| 亚洲一二三四区不卡| 亚洲精品国产一区二区精华液 | 一本久久精品一区二区| 成人午夜在线播放| 成人短视频下载| 成人深夜在线观看| eeuss国产一区二区三区| 9i看片成人免费高清| 成人黄色软件下载| 91色在线porny| 欧美影视一区在线| 欧美日韩成人一区二区| 欧美一卡二卡在线观看| 欧美一区二区视频网站| 精品国产免费久久| 久久久久综合网| 国产日韩欧美电影| 亚洲欧美日韩系列| 亚洲高清中文字幕| 蜜臀久久99精品久久久画质超高清 | 欧美国产激情一区二区三区蜜月| 久久精品人人做人人综合 | 久久久久久99精品| 中文av一区二区| 一区二区日韩av| 蜜桃视频一区二区| 福利一区在线观看| 色狠狠桃花综合| 欧美一区二区日韩一区二区| 久久人人97超碰com| 亚洲天堂中文字幕| 午夜精品一区在线观看| 国模一区二区三区白浆| av一二三不卡影片| 欧美美女激情18p| 久久久精品tv| 一区二区三区中文字幕在线观看| 日韩av一级电影| 成人性生交大片免费看中文网站| 在线观看一区不卡| 久久日韩精品一区二区五区| 亚洲欧洲国产日本综合| 日本特黄久久久高潮| av在线不卡电影| 91精品国产全国免费观看| 国产精品久久三区| 日精品一区二区三区| 成人精品免费看| 欧美大尺度电影在线| 亚洲丝袜美腿综合| 国模娜娜一区二区三区| 欧美色图天堂网| 中文字幕欧美激情一区| 蜜桃av噜噜一区| 色综合久久综合网97色综合| 精品捆绑美女sm三区| 亚洲电影激情视频网站| 成人av在线一区二区| 精品国产乱码久久久久久浪潮| 一区二区在线观看不卡| 国内精品久久久久影院薰衣草| 欧美日韩精品福利| 亚洲视频每日更新| 粉嫩在线一区二区三区视频| 欧美岛国在线观看| 亚洲v精品v日韩v欧美v专区| 99精品国产视频| 欧美激情综合在线| 精品一区二区三区免费观看 | 亚洲综合网站在线观看| 国产91富婆露脸刺激对白| 精品国产一区二区三区忘忧草| 亚洲成人高清在线| 在线观看91视频| 亚洲天堂a在线| 成人免费视频网站在线观看| 精品对白一区国产伦| 捆绑变态av一区二区三区| 欧美男生操女生| 香蕉加勒比综合久久| 色狠狠色狠狠综合| 一区二区在线免费观看| 91免费观看国产| 亚洲精选一二三| 91国产精品成人| 亚洲一区二三区| 欧美日韩国产综合视频在线观看|