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

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

?? connectionmanager.java

?? html to xml convertor
?? JAVA
?? 第 1 頁 / 共 3 頁
字號(hào):
// HTMLParser Library $Name: v1_6 $ - A java-based parser for HTML// http://sourceforge.org/projects/htmlparser// Copyright (C) 2004 Derrick Oswald//// Revision Control Information//// $Source: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/http/ConnectionManager.java,v $// $Author: derrickoswald $// $Date: 2006/06/02 02:43:24 $// $Revision: 1.13 $//// This library is free software; you can redistribute it and/or// modify it under the terms of the GNU Lesser General Public// License as published by the Free Software Foundation; either// version 2.1 of the License, or (at your option) any later version.//// This library is distributed in the hope that it will be useful,// but WITHOUT ANY WARRANTY; without even the implied warranty of// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU// Lesser General Public License for more details.//// You should have received a copy of the GNU Lesser General Public// License along with this library; if not, write to the Free Software// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA//package org.htmlparser.http;import java.io.File;import java.io.IOException;import java.net.HttpURLConnection;import java.net.MalformedURLException;import java.net.URL;import java.net.URLConnection;import java.net.UnknownHostException;import java.text.ParseException;import java.text.SimpleDateFormat;import java.util.Date;import java.util.Enumeration;import java.util.Hashtable;import java.util.Properties;import java.util.StringTokenizer;import java.util.Vector;import org.htmlparser.util.ParserException;/** * Handles proxies, password protected URLs and request properties * including cookies. */public class ConnectionManager{    /**     * Default Request header fields.     * So far this is just "User-Agent" and "Accept-Encoding".     */    protected static Hashtable mDefaultRequestProperties = new Hashtable ();    static    {        mDefaultRequestProperties.put ("User-Agent", "HTMLParser/"            + org.htmlparser.lexer.Lexer.VERSION_NUMBER);        mDefaultRequestProperties.put ("Accept-Encoding", "gzip, deflate");    }    /**     * Messages for page not there (404).     */    private static final String[] FOUR_OH_FOUR =    {        "The web site you seek cannot be located,"            + " but countless more exist",        "You step in the stream, but the water has moved on."            + " This page is not here.",        "Yesterday the page existed. Today it does not."            + " The internet is like that.",        "That page was so big. It might have been very useful."            + " But now it is gone.",        "Three things are certain: death, taxes and broken links."            + " Guess which has occured.",        "Chaos reigns within. Reflect, repent and enter the correct URL."            + " Order shall return.",        "Stay the patient course. Of little worth is your ire."            + " The page is not found.",        "A non-existant URL reduces your expensive computer to a simple stone.",        "Many people have visited that page."            + " Today, you are not one of the lucky ones.",        "Cutting the wind with a knife. Bookmarking a URL."            + " Both are ephemeral.",    };    /**     * Base 64 character translation table.     */    private static final char[] BASE64_CHAR_TABLE =         ("ABCDEFGHIJKLMNOPQRSTUVWXYZ"        + "abcdefghijklmnopqrstuvwxyz0123456789+/").toCharArray ();    /**     * Request header fields.     */    protected Hashtable mRequestProperties;    /**     * The proxy server name.     */    protected String mProxyHost;    /**     * The proxy port number.     */    protected int mProxyPort;    /**     * The proxy username name.     */    protected String mProxyUser;    /**     * The proxy user password.     */    protected String mProxyPassword;    /**     * The username name for accessing the URL.     */    protected String mUser;    /**     * The user password for accessing the URL.     */    protected String mPassword;    /**     * Cookie storage, a hashtable (by site or host) of vectors of Cookies.     * This will be null if cookie processing is disabled (default).     */    protected Hashtable mCookieJar;    /**     * The object to be notified prior to and after each connection.     */    protected ConnectionMonitor mMonitor;    /**     * Flag determining if redirection processing is being handled manually.     */    protected boolean mRedirectionProcessingEnabled;    /**     * Cookie expiry date format for parsing.     */    static protected SimpleDateFormat mFormat =        new SimpleDateFormat ("EEE, dd-MMM-yy kk:mm:ss z");    /**     * Create a connection manager.     */    public ConnectionManager ()    {        this (getDefaultRequestProperties ());    }    /**     * Create a connection manager with the given connection properties.     * @param properties Name/value pairs to be added to the HTTP request.     */    public ConnectionManager (Hashtable properties)    {        mRequestProperties = properties;        mProxyHost = null;        mProxyPort = 0;        mProxyUser = null;        mProxyPassword = null;        mUser = null;        mPassword = null;        mCookieJar = null;        mMonitor = null;        mRedirectionProcessingEnabled = false;    }    //    // static methods    //    /**     * Get the current default request header properties.     * A String-to-String map of header keys and values.     * These fields are set by the parser when creating a connection.     * @return The default set of request header properties that will     * currently be used.     * @see #mDefaultRequestProperties     * @see #setRequestProperties     */    public static Hashtable getDefaultRequestProperties ()    {        return (mDefaultRequestProperties);    }    /**     * Set the default request header properties.     * A String-to-String map of header keys and values.     * These fields are set by the parser when creating a connection.     * Some of these can be set directly on a <code>URLConnection</code>,     * i.e. If-Modified-Since is set with setIfModifiedSince(long),     * but since the parser transparently opens the connection on behalf     * of the developer, these properties are not available before the     * connection is fetched. Setting these request header fields affects all     * subsequent connections opened by the parser. For more direct control     * create a <code>URLConnection</code> massage it the way you want and     * then set it on the parser.<p>     * From <a href="http://www.ietf.org/rfc/rfc2616.txt">     * RFC 2616 Hypertext Transfer Protocol -- HTTP/1.1</a>:      * <pre>     * 5.3 Request Header Fields     *     *    The request-header fields allow the client to pass additional     *    information about the request, and about the client itself, to the     *    server. These fields act as request modifiers, with semantics     *    equivalent to the parameters on a programming language method     *    invocation.     *     *        request-header = Accept                   ; Section 14.1     *                       | Accept-Charset           ; Section 14.2     *                       | Accept-Encoding          ; Section 14.3     *                       | Accept-Language          ; Section 14.4     *                       | Authorization            ; Section 14.8     *                       | Expect                   ; Section 14.20     *                       | From                     ; Section 14.22     *                       | Host                     ; Section 14.23     *                       | If-Match                 ; Section 14.24     *                       | If-Modified-Since        ; Section 14.25     *                       | If-None-Match            ; Section 14.26     *                       | If-Range                 ; Section 14.27     *                       | If-Unmodified-Since      ; Section 14.28     *                       | Max-Forwards             ; Section 14.31     *                       | Proxy-Authorization      ; Section 14.34     *                       | Range                    ; Section 14.35     *                       | Referer                  ; Section 14.36     *                       | TE                       ; Section 14.39     *                       | User-Agent               ; Section 14.43     *     *    Request-header field names can be extended reliably only in     *    combination with a change in the protocol version. However, new or     *    experimental header fields MAY be given the semantics of request-     *    header fields if all parties in the communication recognize them to     *    be request-header fields. Unrecognized header fields are treated as     *    entity-header fields.     * </pre>     * @param properties The new set of default request header properties to     * use. This affects all subsequently created connections.     * @see #mDefaultRequestProperties     * @see #setRequestProperties     */    public static void setDefaultRequestProperties (Hashtable properties)    {        mDefaultRequestProperties = properties;    }    /**     * Get the current request header properties.     * A String-to-String map of header keys and values,     * excluding proxy items, cookies and URL authorization.     * @return The request header properties for this connection manager.     */    public Hashtable getRequestProperties ()    {        return (mRequestProperties);    }    /**     * Set the current request properties.     * Replaces the current set of fixed request properties with the given set.     * This does not replace the Proxy-Authorization property which is     * constructed from the values of {@link #setProxyUser}     * and {@link #setProxyPassword} values or the Authorization property     * which is constructed from the {@link #setUser}     * and {@link #setPassword} values. Nor does it replace the     * Cookie property which is constructed from the current cookie jar.     * @param properties The new fixed properties.     */    public void setRequestProperties (Hashtable properties)    {        mRequestProperties = properties;    }    /**     * Get the proxy host name, if any.     * @return Returns the proxy host.     */    public String getProxyHost ()    {        return (mProxyHost);    }    /**     * Set the proxy host to use.     * @param host The host to use for proxy access.     * <em>Note: You must also set the proxy {@link #setProxyPort port}.</em>     */    public void setProxyHost (String host)    {        mProxyHost = host;    }    /**     * Get the proxy port number.     * @return Returns the proxy port.     */    public int getProxyPort ()    {        return (mProxyPort);    }    /**     * Set the proxy port number.     * @param port The proxy port.     * <em>Note: You must also set the proxy {@link #setProxyHost host}.</em>     */    public void setProxyPort (int port)    {        mProxyPort = port;    }    /**     * Get the user name for proxy authorization, if any.     * @return Returns the proxy user,     * or <code>null</code> if no proxy authorization is required.     */    public String getProxyUser ()    {        return (mProxyUser);    }    /**     * Set the user name for proxy authorization.     * @param user The proxy user name.     * <em>Note: You must also set the proxy {@link #setProxyPassword password}.</em>     */    public void setProxyUser (String user)    {        mProxyUser = user;    }    /**     * Set the proxy user's password.     * @return Returns the proxy password.     */    public String getProxyPassword ()    {        return (mProxyPassword);    }    /**     * Get the proxy user's password.     * @param password The password for the proxy user.     * <em>Note: You must also set the proxy {@link #setProxyUser user}.</em>     */    public void setProxyPassword (String password)    {        mProxyPassword = password;    }    /**     * Get the user name to access the URL.     * @return Returns the username that will be used to access the URL,     * or <code>null</code> if no authorization is required.     */    public String getUser ()    {        return (mUser);    }    /**     * Set the user name to access the URL.     * @param user The user name for accessing the URL.     * <em>Note: You must also set the {@link #setPassword password}.</em>     */    public void setUser (String user)    {        mUser = user;    }    /**     * Get the URL users's password.     * @return Returns the URL password.     */    public String getPassword ()    {        return (mPassword);    }    /**     * Set the URL users's password.     * @param password The password for the URL.     */    public void setPassword (String password)    {        mPassword = password;    }    /**     * Predicate to determine if cookie processing is currently enabled.     * @return <code>true</code> if cookies are being processed.     */    public boolean getCookieProcessingEnabled ()    {        return (null != mCookieJar);    }    /**     * Enables and disabled cookie processing.     * @param enable if <code>true</code> cookie processing will occur,     * else cookie processing will be turned off.     */

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
男女男精品视频| 欧美日韩亚洲综合一区 | 国产盗摄精品一区二区三区在线 | jvid福利写真一区二区三区| 国产精一区二区三区| 国内外精品视频| 国产自产视频一区二区三区| 韩国三级电影一区二区| 国内精品免费**视频| 国产超碰在线一区| av午夜一区麻豆| 色综合久久综合中文综合网| 在线一区二区三区| 欧美视频一区二区在线观看| 欧美精品久久一区| 日韩欧美国产一区二区三区| 久久精品人人做人人爽97| 中文字幕精品一区二区三区精品| 国产精品福利影院| 一区二区三区日韩欧美| 婷婷亚洲久悠悠色悠在线播放| 丝袜美腿亚洲综合| 国产一区二区免费视频| 成人综合婷婷国产精品久久免费| 成年人国产精品| 欧美系列日韩一区| 日韩一卡二卡三卡四卡| 久久久久久久久久久99999| 国产免费观看久久| 一区二区三区在线播| 日韩电影在线免费观看| 国产精品一二二区| 色美美综合视频| 日韩午夜精品电影| 国产精品久久久久久久久快鸭| 亚洲国产视频一区二区| 精品一区精品二区高清| 成人av在线电影| 欧美精品日韩一区| 国产精品视频yy9299一区| 夜夜嗨av一区二区三区中文字幕 | 精品一区二区三区不卡| 成人午夜私人影院| 欧美日韩美女一区二区| 久久色.com| 亚洲一区二区三区在线播放| 韩国女主播一区| 日本精品免费观看高清观看| 日韩精品中文字幕在线不卡尤物| 日韩毛片精品高清免费| 丝袜a∨在线一区二区三区不卡 | 久久久久国产精品免费免费搜索| 亚洲女人小视频在线观看| 偷拍一区二区三区| 成人av在线网| 精品国产一区二区三区久久久蜜月 | 欧美人牲a欧美精品| 国产午夜亚洲精品羞羞网站| 亚洲一级在线观看| 风间由美中文字幕在线看视频国产欧美| 欧美性色aⅴ视频一区日韩精品| 久久久久久亚洲综合| 天堂资源在线中文精品| 99麻豆久久久国产精品免费 | 成人免费在线视频| 韩国中文字幕2020精品| 欧美日韩国产一区| 亚洲伦理在线免费看| 国产成人综合亚洲91猫咪| 欧美精品日韩一区| 一区二区三区中文字幕电影| 国产99一区视频免费| 日韩网站在线看片你懂的| 亚洲一区二区三区三| 成人av午夜电影| 久久久久久夜精品精品免费| 免费观看91视频大全| 欧美午夜精品一区二区三区| 国产精品国产a| 国产成人a级片| 26uuu精品一区二区在线观看| 天天做天天摸天天爽国产一区 | 在线欧美日韩精品| 国产精品的网站| 国产成人精品免费一区二区| 精品久久久久一区二区国产| 日本不卡高清视频| 欧美美女一区二区在线观看| 亚洲美女少妇撒尿| 91老师国产黑色丝袜在线| 国产精品三级视频| 国产成人av电影免费在线观看| 日韩精品一区二区在线| 美国毛片一区二区三区| 4438x亚洲最大成人网| 图片区小说区区亚洲影院| 欧美日韩视频在线一区二区 | 成人蜜臀av电影| 国产欧美日韩三区| 丁香桃色午夜亚洲一区二区三区| 久久久久亚洲综合| 国产精品一二一区| 中文在线一区二区| 99精品在线免费| 亚洲欧美一区二区三区孕妇| 26uuu国产在线精品一区二区| 日本不卡中文字幕| 欧美videos中文字幕| 久久国产剧场电影| 精品区一区二区| 国产在线精品国自产拍免费| 精品国产青草久久久久福利| 精品在线视频一区| 日本一区二区三级电影在线观看| 成人午夜免费视频| 亚洲欧洲无码一区二区三区| 99精品视频在线观看| 亚洲精品免费视频| 精品视频在线视频| 青青草国产成人av片免费| 26uuu亚洲综合色欧美| 国产宾馆实践打屁股91| 亚洲欧洲另类国产综合| 欧美在线免费视屏| 免费不卡在线观看| 国产欧美一区二区精品仙草咪 | 日本一区二区久久| 色婷婷久久99综合精品jk白丝 | 在线观看日韩电影| 偷窥少妇高潮呻吟av久久免费| 日韩欧美一区二区不卡| 国产美女精品一区二区三区| 国产精品黄色在线观看| 欧美亚洲动漫另类| 麻豆精品久久精品色综合| 久久伊人蜜桃av一区二区| caoporn国产一区二区| 亚洲一区二区三区美女| 精品国产一区二区三区久久久蜜月 | 亚洲成人免费在线观看| 欧美成人高清电影在线| 97成人超碰视| 天天综合色天天| 国产欧美一区二区精品忘忧草| 一本色道久久综合亚洲91 | 成人av网站在线观看免费| 亚洲一区在线观看视频| 精品久久久久久久久久久院品网| 成人免费视频一区二区| 天堂一区二区在线| 国产精品你懂的在线欣赏| 欧美日韩国产不卡| 成人黄色国产精品网站大全在线免费观看| 樱桃视频在线观看一区| 久久久午夜电影| 欧美日本视频在线| 91在线观看污| 久久草av在线| 亚洲女性喷水在线观看一区| 精品国产免费一区二区三区香蕉| 色拍拍在线精品视频8848| 国产精品自拍三区| 视频在线观看国产精品| 中文字幕人成不卡一区| 26uuuu精品一区二区| 欧美日韩中文字幕精品| 91在线精品一区二区三区| 国产精品影视在线观看| 日韩国产在线观看| 亚洲人精品一区| 欧美激情一区不卡| 精品毛片乱码1区2区3区| 欧美影院精品一区| eeuss鲁一区二区三区| 国产精品综合一区二区三区| 青青草视频一区| 五月婷婷久久丁香| 亚洲免费资源在线播放| 欧美韩国日本综合| 久久这里只有精品视频网| 欧美一卡二卡三卡四卡| 欧美午夜精品久久久久久超碰 | 91免费视频大全| 国产河南妇女毛片精品久久久 | 色综合久久久久久久| 国产mv日韩mv欧美| 黑人巨大精品欧美一区| 裸体一区二区三区| 日韩在线观看一区二区| 亚洲一二三专区| 一二三四区精品视频| 一区二区在线看| 亚洲精品一二三区| 亚洲六月丁香色婷婷综合久久| 国产精品国产三级国产aⅴ入口 | 久久亚洲二区三区| 欧美tickling网站挠脚心| 欧美一二三区在线观看| 777奇米成人网| 欧美一区二区三区在线|