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

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

?? httpsurl.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/HttpsURL.java,v 1.11 2004/09/30 17:26:41 oglueck 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;import org.apache.commons.httpclient.util.URIUtil;/** * The HTTPS URL. * * @author <a href="mailto:jericho at apache.org">Sung-Gu</a> * @author <a href="mailto:mbowler@GargoyleSoftware.com">Mike Bowler</a> */public class HttpsURL extends HttpURL {    // ----------------------------------------------------------- Constructors    /**     * Create an instance as an internal use.     */    protected HttpsURL() {    }    /**     * Construct a HTTPS URL as an escaped form of a character array with the     * given charset to do escape encoding.     *     * @param escaped the HTTPS URL character sequence     * @param charset the charset to do escape encoding     * @throws URIException If {@link #checkValid()} fails     * @throws NullPointerException if <code>escaped</code> is <code>null</code>     * @see #getProtocolCharset     */    public HttpsURL(char[] escaped, String charset)        throws URIException, NullPointerException {        protocolCharset = charset;        parseUriReference(new String(escaped), true);        checkValid();    }    /**     * Construct a HTTPS URL as an escaped form of a character array.     *     * @param escaped the HTTPS URL character sequence     * @throws URIException If {@link #checkValid()} fails     * @throws NullPointerException if <code>escaped</code> is <code>null</code>     * @see #getDefaultProtocolCharset     */    public HttpsURL(char[] escaped) throws URIException, NullPointerException {        parseUriReference(new String(escaped), true);        checkValid();    }    /**     * Construct a HTTPS URL from a given string with the given charset to do     * escape encoding.     *     * @param original the HTTPS URL string     * @param charset the charset to do escape encoding     * @throws URIException If {@link #checkValid()} fails     * @see #getProtocolCharset     */    public HttpsURL(String original, String charset) throws URIException {        protocolCharset = charset;        parseUriReference(original, false);        checkValid();    }    /**     * Construct a HTTPS URL from a given string.     *     * @param original the HTTPS URL string     * @throws URIException If {@link #checkValid()} fails     * @see #getDefaultProtocolCharset     */    public HttpsURL(String original) throws URIException {        parseUriReference(original, false);        checkValid();    }    /**     * Construct a HTTPS URL from given components.     *     * @param host the host string     * @param port the port number     * @param path the path string     * @throws URIException If {@link #checkValid()} fails     * @see #getDefaultProtocolCharset     */    public HttpsURL(String host, int port, String path) throws URIException {        this(null, host, port, path, null, null);    }    /**     * Construct a HTTPS URL from given components.     *     * @param host the host string     * @param port the port number     * @param path the path string     * @param query the query string     * @throws URIException If {@link #checkValid()} fails     * @see #getDefaultProtocolCharset     */    public HttpsURL(String host, int port, String path, String query)        throws URIException {        this(null, host, port, path, query, null);    }    /**     * Construct a HTTPS URL from given components.     *     * @param user the user name     * @param password his or her password     * @param host the host string     * @throws URIException If {@link #checkValid()} fails     * @see #getDefaultProtocolCharset     */    public HttpsURL(String user, String password, String host)        throws URIException {        this(user, password, host, -1, null, null, null);    }    /**     * Construct a HTTPS URL from given components.     *     * @param user the user name     * @param password his or her password     * @param host the host string     * @param port the port number     * @throws URIException If {@link #checkValid()} fails     * @see #getDefaultProtocolCharset     */    public HttpsURL(String user, String password, String host, int port)        throws URIException {        this(user, password, host, port, null, null, null);    }    /**     * Construct a HTTPS URL from given components.     *     * @param user the user name     * @param password his or her password     * @param host the host string     * @param port the port number     * @param path the path string     * @throws URIException If {@link #checkValid()} fails     * @see #getDefaultProtocolCharset     */    public HttpsURL(String user, String password, String host, int port,            String path) throws URIException {        this(user, password, host, port, path, null, null);    }    /**     * Construct a HTTPS URL from given components.     *     * @param user the user name     * @param password his or her password     * @param host the host string     * @param port the port number     * @param path the path string     * @param query The query string.     * @throws URIException If {@link #checkValid()} fails     * @see #getDefaultProtocolCharset     */    public HttpsURL(String user, String password, String host, int port,            String path, String query) throws URIException {        this(user, password, host, port, path, query, null);    }    /**     * Construct a HTTPS URL from given components.     *     * @param host the host string     * @param path the path string     * @param query the query string     * @param fragment the fragment string     * @throws URIException If {@link #checkValid()} fails     * @see #getDefaultProtocolCharset     */    public HttpsURL(String host, String path, String query, String fragment)        throws URIException {        this(null, host, -1, path, query, fragment);    }    /**     * Construct a HTTPS URL from given components.     *     * Note: The <code>userinfo</code> format is normally     * <code>&lt;username&gt;:&lt;password&gt;</code> where     * username and password must both be URL escaped.     *       * @param userinfo the userinfo string whose parts are URL escaped     * @param host the host string     * @param path the path string     * @param query the query string     * @param fragment the fragment string     * @throws URIException If {@link #checkValid()} fails     * @see #getDefaultProtocolCharset     */    public HttpsURL(String userinfo, String host, String path, String query,            String fragment) throws URIException {        this(userinfo, host, -1, path, query, fragment);    }    /**     * Construct a HTTPS URL from given components.     *     * Note: The <code>userinfo</code> format is normally     * <code>&lt;username&gt;:&lt;password&gt;</code> where     * username and password must both be URL escaped.     *       * @param userinfo the userinfo string whose parts are URL escaped     * @param host the host string     * @param port the port number     * @param path the path string     * @throws URIException If {@link #checkValid()} fails     * @see #getDefaultProtocolCharset     */    public HttpsURL(String userinfo, String host, int port, String path)        throws URIException {        this(userinfo, host, port, path, null, null);    }    /**     * Construct a HTTPS URL from given components.     *     * Note: The <code>userinfo</code> format is normally     * <code>&lt;username&gt;:&lt;password&gt;</code> where     * username and password must both be URL escaped.     *       * @param userinfo the userinfo string whose parts are URL escaped     * @param host the host string     * @param port the port number     * @param path the path string     * @param query the query string     * @throws URIException If {@link #checkValid()} fails     * @see #getDefaultProtocolCharset     */    public HttpsURL(String userinfo, String host, int port, String path,            String query) throws URIException {        this(userinfo, host, port, path, query, null);    }    /**     * Construct a HTTPS URL from given components.     *     * Note: The <code>userinfo</code> format is normally     * <code>&lt;username&gt;:&lt;password&gt;</code> where     * username and password must both be URL escaped.     *       * @param userinfo the userinfo string whose parts are URL escaped     * @param host the host string     * @param port the port number     * @param path the path string     * @param query the query string     * @param fragment the fragment string     * @throws URIException If {@link #checkValid()} fails     * @see #getDefaultProtocolCharset     */    public HttpsURL(String userinfo, String host, int port, String path,            String query, String fragment) throws URIException {        // validate and contruct the URI character sequence        StringBuffer buff = new StringBuffer();        if (userinfo != null || host != null || port != -1) {            _scheme = DEFAULT_SCHEME; // in order to verify the own protocol            buff.append(_default_scheme);            buff.append("://");            if (userinfo != null) {                buff.append(userinfo);                buff.append('@');            }            if (host != null) {                buff.append(URIUtil.encode(host, URI.allowed_host));                if (port != -1 || port != DEFAULT_PORT) {                    buff.append(':');                    buff.append(port);                }            }        }        if (path != null) {  // accept empty path            if (scheme != null && !path.startsWith("/")) {                throw new URIException(URIException.PARSING,                        "abs_path requested");            }            buff.append(URIUtil.encode(path, URI.allowed_abs_path));        }        if (query != null) {            buff.append('?');            buff.append(URIUtil.encode(query, URI.allowed_query));        }        if (fragment != null) {            buff.append('#');            buff.append(URIUtil.encode(fragment, URI.allowed_fragment));        }        parseUriReference(buff.toString(), true);        checkValid();    }    /**     * Construct a HTTP URL from given components.     *     * @param user the user name     * @param password his or her password     * @param host the host string     * @param port the port number     * @param path the path string     * @param query the query string     * @param fragment the fragment string     * @throws URIException If {@link #checkValid()} fails     * @see #getDefaultProtocolCharset     */    public HttpsURL(String user, String password, String host, int port,            String path, String query, String fragment) throws URIException {        this(HttpURL.toUserinfo(user, password), host, port, path, query, fragment);    }        /**     * Construct a HTTPS URL with a given relative HTTPS URL string.     *     * @param base the base HttpsURL     * @param relative the relative HTTPS URL string     * @throws URIException If {@link #checkValid()} fails     */    public HttpsURL(HttpsURL base, String relative) throws URIException {        this(base, new HttpsURL(relative));    }    /**     * Construct a HTTPS URL with a given relative URL.     *     * @param base the base HttpsURL     * @param relative the relative HttpsURL     * @throws URIException If {@link #checkValid()} fails     */    public HttpsURL(HttpsURL base, HttpsURL relative) throws URIException {        super(base, relative);        checkValid();    }    // -------------------------------------------------------------- Constants    /**     * Default scheme for HTTPS URL.     */    public static final char[] DEFAULT_SCHEME = { 'h', 't', 't', 'p', 's' };        /**     * Default scheme for HTTPS URL.     * @deprecated Use {@link #DEFAULT_SCHEME} instead.  This one doesn't     * conform to the project naming conventions.     */    public static final char[] _default_scheme = DEFAULT_SCHEME;    /**     * Default port for HTTPS URL.     */    public static final int DEFAULT_PORT = 443;    /**     * Default port for HTTPS URL.     * @deprecated Use {@link #DEFAULT_PORT} instead.  This one doesn't conform     * to the project naming conventions.     */    public static final int _default_port = DEFAULT_PORT;    /**     * The serialVersionUID.     */    static final long serialVersionUID = 887844277028676648L;    // ------------------------------------------------------------- The scheme    /**     * Get the scheme.  You can get the scheme explicitly.     *     * @return the scheme     */    public char[] getRawScheme() {        return (_scheme == null) ? null : HttpsURL.DEFAULT_SCHEME;    }    /**     * Get the scheme.  You can get the scheme explicitly.     *     * @return the scheme null if empty or undefined     */    public String getScheme() {        return (_scheme == null) ? null : new String(HttpsURL.DEFAULT_SCHEME);    }    // --------------------------------------------------------------- The port    /**     * Get the port number.     * @return the port number     */    public int getPort() {        return (_port == -1) ? HttpsURL.DEFAULT_PORT : _port;    }            // ---------------------------------------------------------------- Utility    /**     * Verify the valid class use for construction.     *     * @throws URIException the wrong scheme use     */    protected void checkValid() throws URIException {        // could be explicit protocol or undefined.        if (!(equals(_scheme, DEFAULT_SCHEME) || _scheme == null)) {            throw new URIException(URIException.PARSING, "wrong class use");        }    }}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本韩国精品在线| 精品三级在线看| 亚洲成年人影院| 欧美在线一区二区| 日韩av一区二区在线影视| 日韩一区二区在线看| 国产精品影视在线观看| 中文字幕一区av| 欧美日韩在线播放三区四区| 美女网站一区二区| 国产午夜精品在线观看| 99国产一区二区三精品乱码| 亚洲va国产va欧美va观看| 欧美成人精品二区三区99精品| 国产成人av在线影院| 一区二区在线看| 日韩亚洲欧美一区| 不卡在线观看av| 亚洲国产视频a| 久久美女艺术照精彩视频福利播放| av动漫一区二区| 日韩黄色小视频| 国产亚洲成年网址在线观看| 91福利精品视频| 九一九一国产精品| 椎名由奈av一区二区三区| 欧美精品丝袜中出| 高清在线不卡av| 亚洲成av人片一区二区三区| 久久精品亚洲一区二区三区浴池| 97se亚洲国产综合自在线观| 奇米色777欧美一区二区| 久久精品夜色噜噜亚洲a∨| 欧洲亚洲精品在线| 国产精品69久久久久水密桃| 亚洲国产日韩a在线播放 | 欧美性受xxxx黑人xyx| 久久精品999| 亚洲精品水蜜桃| 精品999在线播放| 在线视频亚洲一区| 国产一区二区三区高清播放| 亚洲综合区在线| 国产亚洲欧美在线| 欧美夫妻性生活| av色综合久久天堂av综合| 麻豆精品在线看| 亚洲一区二区三区四区五区黄| 国产亚洲污的网站| 欧美一三区三区四区免费在线看 | 在线不卡a资源高清| www.成人在线| 激情成人午夜视频| 亚洲大片免费看| 国产精品理论在线观看| 日韩欧美一区二区免费| 欧美专区在线观看一区| 国产91丝袜在线播放0| 青青草成人在线观看| 亚洲黄色在线视频| 中文字幕av一区二区三区高| 欧美一卡二卡在线观看| 一本大道久久精品懂色aⅴ| 国产精选一区二区三区| 热久久久久久久| 亚洲一区二区三区四区在线免费观看| 国产欧美一区二区精品久导航| 在线成人免费视频| 日本韩国一区二区| 大白屁股一区二区视频| 国产一区二区伦理| 日韩精品每日更新| 亚洲一区二区3| 国产精品白丝在线| 国产日产欧产精品推荐色 | 国产日韩欧美电影| 欧美成人精品1314www| 欧美精品黑人性xxxx| 色94色欧美sute亚洲线路一久| 成人一区二区三区视频| 国产精品一线二线三线| 精品影院一区二区久久久| 日本不卡一区二区三区| 亚洲国产精品人人做人人爽| 国产精品久久看| 国产精品免费看片| 欧美高清在线一区| 久久久99久久精品欧美| 精品国产伦一区二区三区观看体验| 91麻豆精品国产91久久久 | 中文字幕高清一区| 久久久国产一区二区三区四区小说| 日韩免费成人网| 日韩一区二区免费在线电影| 91精品国产综合久久精品| 欧美理论电影在线| 欧美精品亚洲二区| 欧美一区午夜精品| 日韩三级伦理片妻子的秘密按摩| 91精品免费观看| 日韩一区二区免费高清| 91精品国产色综合久久不卡电影 | 精品在线免费观看| 精品一区在线看| 精品写真视频在线观看| 久久99热国产| 国产乱子伦视频一区二区三区 | 亚洲不卡在线观看| 午夜视频一区二区三区| 婷婷六月综合亚洲| 秋霞影院一区二区| 久久99精品久久久久久国产越南| 精品一区二区三区香蕉蜜桃| 久久丁香综合五月国产三级网站| 国产最新精品精品你懂的| 国产一区二区精品久久| 懂色一区二区三区免费观看| av激情综合网| 欧美综合欧美视频| 欧美精品在线视频| 日韩精品中文字幕一区二区三区 | 《视频一区视频二区| 一区二区三区四区国产精品| 亚洲一区影音先锋| 日本伊人色综合网| 国产乱子伦视频一区二区三区| 国产91精品在线观看| 91在线观看成人| 精品视频在线免费观看| 日韩一区二区在线观看视频 | 国产中文字幕一区| 成人av免费观看| 在线影院国内精品| 欧美一区二区视频在线观看| 国产亚洲综合在线| 亚洲人午夜精品天堂一二香蕉| 一级特黄大欧美久久久| 日韩av一区二区三区四区| 国产酒店精品激情| 91麻豆产精品久久久久久| 欧美性猛交xxxxxx富婆| 精品久久久久久久久久久久久久久| 国产日产精品一区| 亚洲午夜免费视频| 九色|91porny| av在线这里只有精品| 欧美理论在线播放| 国产日本亚洲高清| 亚洲综合视频在线| 狠狠色狠狠色综合系列| 91麻豆精品在线观看| 欧美一区二区三区四区视频| 中文字幕av不卡| 亚洲二区视频在线| 美腿丝袜亚洲综合| av在线不卡观看免费观看| 69堂亚洲精品首页| 国产蜜臀av在线一区二区三区| 亚洲一二三级电影| 国产一区中文字幕| 日本道色综合久久| 精品日韩一区二区三区免费视频| 中文字幕一区二区三区不卡| 青草国产精品久久久久久| www.日韩大片| 日韩片之四级片| 成人激情免费视频| 欧美一区二区在线免费观看| 亚洲欧美综合在线精品| 视频在线观看91| 99亚偷拍自图区亚洲| 欧美一区二区播放| 亚洲精品视频自拍| 国产专区欧美精品| 欧美美女直播网站| 国产精品白丝在线| 韩国成人在线视频| 欧美影院午夜播放| 日本一区二区三区电影| 青青草国产精品97视觉盛宴| 91在线视频在线| 久久久久久免费网| 日韩**一区毛片| 色婷婷亚洲婷婷| 久久精品水蜜桃av综合天堂| 天天综合天天综合色| av中文字幕亚洲| 久久久久久久久久久久久久久99| 性久久久久久久久| 一本大道久久a久久综合婷婷| 久久精品人人做人人综合| 偷拍亚洲欧洲综合| 日本高清无吗v一区| 国产精品美女www爽爽爽| 韩国午夜理伦三级不卡影院| 欧美美女bb生活片| 一区二区三区视频在线看| 成人一区二区视频| 精品国内二区三区| 日韩高清不卡在线|