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

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

?? cookie.java

?? 本程序用于對頁面信息進行提取并分析
?? JAVA
字號:
// HTMLParser Library $Name: v1_6_20060319 $ - 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/Cookie.java,v $// $Author: derrickoswald $// $Date: 2006/03/19 20:14:58 $// $Revision: 1.4 $//// 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.Serializable;import java.util.Date;/** * A HTTP cookie. * This class represents a "Cookie", as used for session management with HTTP * and HTTPS protocols. Cookies are used to get user agents (web browsers etc) * to hold small amounts of state associated with a user's web browsing. Common * applications for cookies include storing user preferences, automating low * security user signon facilities, and helping collect data used for "shopping * cart" style applications. * <P> * Cookies are named, and have a single value. They may have optional * attributes, including a comment presented to the user, path and domain * qualifiers for which hosts see the cookie, a maximum age, and a version. * Current web browsers often have bugs in how they treat those attributes, so * interoperability can be improved by not relying on them heavily. * <P> * Cookies are assigned by servers, using fields added to HTTP response headers. * Cookies are passed back to those servers using fields added to HTTP request * headers. Several cookies with the same name can be returned; * they have different path attributes, but those attributes * will not be visible when using "old format" cookies. * <P> * Cookies affect the caching of the web pages used to set their values. At this * time, none of the sophisticated HTTP/1.1 cache control models are supported. * Standard HTTP/1.0 caches will not cache pages which contain * cookies created by this class. * <P> * Cookies are being standardized by the IETF. This class supports the original * Cookie specification (from Netscape Communications Corp.) as well as the * updated <a href="http://www.ietf.org/rfc/rfc2109.txt">RFC 2109</a> * specification. */public class Cookie    implements        Cloneable,        Serializable{    /**     * Special characters to watch out for.     * From RFC 2068, token special case characters.     */    private static final String SPECIALS = "()<>@,;:\\\"/[]?={} \t";    /**     * The name of the cookie.     */    protected String mName;    /**     * The cookie value.     */    protected String mValue; // value of NAME    /**     * Describes the cookie's use.     */    protected String mComment;    /**     * Domain that sees cookie.     */    protected String mDomain;    /**     * Cookie expires after this date.     */    protected Date mExpiry;    /**     * URLs that see the cookie.     */    protected String mPath;    /**     * Use SSL.     */    protected boolean mSecure;    /**     * If Version=1 it means RFC 2109++ style cookies.     */    protected int mVersion;    /**     * Defines a cookie with an initial name/value pair. The name must be an     * HTTP/1.1 "token" value; alphanumeric ASCII strings work. Names starting     * with a "$" character are reserved by RFC 2109.     * The path for the cookie is set to the root ("/") and there is no     * expiry time set.     * @param name  The name of the cookie.     * @param value The value of the cookie.     * @exception IllegalArgumentException     *             if the cookie name is not an HTTP/1.1 "token", or if it is     *             one of the tokens reserved for use by the cookie protocol     */    public Cookie (String name, String value)        throws            IllegalArgumentException    {        if (!isToken (name) || name.equalsIgnoreCase ("Comment") // rfc2019                || name.equalsIgnoreCase ("Discard") // 2019++                || name.equalsIgnoreCase ("Domain")                || name.equalsIgnoreCase ("Expires") // (old cookies)                || name.equalsIgnoreCase ("Max-Age") // rfc2019                || name.equalsIgnoreCase ("Path")                || name.equalsIgnoreCase ("Secure")                || name.equalsIgnoreCase ("Version"))            throw new IllegalArgumentException ("invalid cookie name: " + name);        mName = name;        mValue = value;        mComment = null;        mDomain = null;        mExpiry = null; // not persisted        mPath = "/";        mSecure = false;        mVersion = 0;    }    /**     * If a user agent (web browser) presents this cookie to a user, the     * cookie's purpose will be described using this comment. This is not     * supported by version zero cookies.     * @param purpose The cookie comment.     * @see #getComment     */    public void setComment (String purpose)    {        mComment = purpose;    }    /**     * Returns the comment describing the purpose of this cookie, or null if no     * such comment has been defined.     * @see #setComment     * @return The cookie comment, or <code>null</code> if none.     */    public String getComment ()    {        return (mComment);    }    /**     * This cookie should be presented only to hosts satisfying this domain name     * pattern. Read RFC 2109 for specific details of the syntax. Briefly, a     * domain name name begins with a dot (".foo.com") and means that hosts in     * that DNS zone ("www.foo.com", but not "a.b.foo.com") should see the     * cookie. By default, cookies are only returned to the host which saved     * them.     * @see #getDomain     * @param pattern The domain name pattern. The pattern is converted to     * lower case to accommodate less capable browsers.     */    public void setDomain (String pattern)    {        mDomain = pattern.toLowerCase (); // IE allegedly needs this    }    /**     * Returns the domain of this cookie.     * @return The cookie domain (the base URL name it applies to).     * @see #setDomain     */    public String getDomain ()    {        return (mDomain);    }    /**     * Sets the expiry date of the cookie. The cookie will expire after the     * date specified. A null value indicates the default behaviour:     * the cookie is not stored persistently, and will be deleted when the user     * agent (web browser) exits.     * @param expiry The expiry date for this cookie, or <code>null</code> if     * the cookie is persistent.     * @see #getExpiryDate     */    public void setExpiryDate (Date expiry)    {        mExpiry = expiry;    }    /**     * Returns the expiry date of the cookie. If none was specified,     * null is returned, indicating the default behaviour described     * with <em>setExpiryDate</em>.     * @return The cookie expiry date, or <code>null</code> if it is persistent.     * @see #setExpiryDate     */    public Date getExpiryDate ()    {        return (mExpiry);    }    /**     * This cookie should be presented only with requests beginning with this     * URL. Read RFC 2109 for a specification of the default behaviour.     * Basically, URLs in the same "directory" as the one which set the cookie,     * and in subdirectories, can all see the cookie unless a different path is     * set.     * @param uri The exclusion prefix for the cookie.     * @see #getPath     */    public void setPath (String uri)    {        mPath = uri;    }    /**     * Returns the prefix of all URLs for which this cookie is targetted.     * @return The cookie path (or "/" if no specific path is specified).     * @see #setPath     */    public String getPath ()    {        return (mPath);    }    /**     * Indicates to the user agent that the cookie should only be sent using a     * secure protocol (https). This should only be set when the cookie's     * originating server used a secure protocol to set the cookie's value.     * @see #getSecure     * @param flag Use <code>true</code> if the cookie is to be sent using     * secure protocols, <code>false</code> otherwise.     */    public void setSecure (boolean flag)    {        mSecure = flag;    }    /**     * Returns the value of the 'secure' flag.     * @return The <code>true</code> if this cookie should only be sent using     * a secure protocol, <code>false</code> otherwise.     * @see #setSecure     */    public boolean getSecure ()    {        return (mSecure);    }    /**     * Returns the name of the cookie. This name may not be changed after the     * cookie is created.     * @return The name of the cookie.     */    public String getName ()    {        return (mName);    }    /**     * Sets the value of the cookie. BASE64 encoding is suggested for use with     * binary values.     * <p>With version zero cookies, you need to be careful about the kinds of     * values you use. Values with various special characters (whitespace,     * brackets and parentheses, the equals sign, comma, double quote, slashes,     * question marks, the "at" sign, colon, and semicolon) should be avoided.     * Empty values may not behave the same way on all browsers.</p>     * @param newValue The new value for the cookie.     * @see #getValue     */    public void setValue (String newValue)    {        mValue = newValue;    }    /**     * Returns the value of the cookie.     * @return The cookie value.     * @see #setValue     */    public String getValue ()    {        return (mValue);    }    /**     * Returns the version of the cookie. Version 1 complies with RFC 2109,     * version 0 indicates the original version, as specified by Netscape. Newly     * constructed cookies use version 0 by default, to maximize     * interoperability. Cookies provided by a user agent will identify the     * cookie version used by the browser.     * @see #setVersion     * @return The cookie version.     */    public int getVersion ()    {        return (mVersion);    }    /**     * Sets the version of the cookie protocol used when this cookie saves     * itself. Since the IETF standards are still being finalized, consider     * version 1 as experimental; do not use it (yet) on production sites.     * @param version The version of the cookie, either 0 or 1.     * @see #getVersion     */    public void setVersion (int version)    {        mVersion = version;    }    /**     * Return true iff the string counts as an HTTP/1.1 "token".     * Valid tokens cannot have characters outside the ASCII range 0x20-0x7e,     * and cannot contain any of these characters: "()<>@,;:\\\"/[]?={} \t".     * @return The <code>true</code> if the provided string is a valid     * token, <code>false</code> otherwise.     */    private boolean isToken (String value)    {        int length;        char c;        boolean ret;        ret = true;        length = value.length ();        for (int i = 0; i < length && ret; i++)        {            c = value.charAt (i);            if (c < ' ' || c > '~' || SPECIALS.indexOf (c) != -1)                ret = false;        }        return (ret);    }    /**     * Returns a copy of this object.     * @return The clone of this cookie.     */    public Object clone ()    {        try        {            return (super.clone ());        }        catch (CloneNotSupportedException e)        {            throw new RuntimeException (e.getMessage ());        }    }    /**     * Convert this cookie into a user friendly string.     * @return A short form string representing this cookie.     */    public String toString ()    {        StringBuffer ret;        ret = new StringBuffer (50);        if (getSecure ())            ret.append ("secure ");        if (0 != getVersion ())        {            ret.append ("version ");            ret.append (getVersion ());            ret.append (" ");        }        ret.append ("cookie");        if (null != getDomain ())        {            ret.append (" for ");            ret.append (getDomain ());            if (null != getPath ())                ret.append (getPath ());        }        else        {            if (null != getPath ())            {                ret.append (" (path ");                ret.append (getPath ());                ret.append (")");            }        }        ret.append (": ");        ret.append (getName ());        ret.append (getName ().equals ("") ? "" : "=");        if (getValue ().length () > 40)        {            ret.append (getValue ().substring (1, 40));            ret.append ("...");        }        else            ret.append (getValue ());        if (null != getComment ())        {            ret.append (" // ");            ret.append (getComment ());        }        return (ret.toString ());    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美片网站yy| 久久日韩粉嫩一区二区三区| 91麻豆精品国产自产在线| 亚洲精品一区二区三区香蕉| 亚洲欧洲精品天堂一级| 三级久久三级久久| 91免费国产在线观看| 日韩精品专区在线影院重磅| 一区二区三区日韩在线观看| 国产精品99久久久久久久女警| 欧美久久久一区| 亚洲激情图片小说视频| 国产成人在线视频免费播放| 精品少妇一区二区三区| 亚洲高清视频中文字幕| 91网站最新网址| 久久久午夜精品理论片中文字幕| 天堂蜜桃91精品| 91激情在线视频| 国产精品久久久久久久久快鸭 | 日韩一级黄色大片| 亚洲女同女同女同女同女同69| 久久97超碰色| 91精品久久久久久久91蜜桃| 亚洲主播在线播放| 99久久免费视频.com| 日本一区二区视频在线| 久久66热re国产| 欧美videos大乳护士334| 日日夜夜免费精品| 精品黑人一区二区三区久久| 偷拍日韩校园综合在线| 欧美三级电影在线看| 伊人一区二区三区| 欧美性猛交xxxx乱大交退制版| 一区在线播放视频| 99免费精品视频| 亚洲视频 欧洲视频| 成人精品国产免费网站| 欧美激情中文不卡| 成人一级视频在线观看| 国产午夜精品一区二区三区视频 | 成人夜色视频网站在线观看| 久久久美女艺术照精彩视频福利播放| 久久精品国产99| 久久影院午夜片一区| 国产麻豆91精品| 国产精品九色蝌蚪自拍| 91丝袜国产在线播放| 亚洲韩国精品一区| 91精品在线免费| 黄色小说综合网站| 亚洲国产精品成人久久综合一区 | 日韩一区在线免费观看| 色偷偷一区二区三区| 首页国产欧美久久| 日韩精品一区二区在线| 成人精品免费看| 中文字幕乱码久久午夜不卡 | 国产在线精品一区二区不卡了 | 黄色日韩三级电影| 国产婷婷精品av在线| 不卡一区在线观看| 国产美女在线精品| 国产精品视频yy9299一区| 91视频.com| 日日嗨av一区二区三区四区| 久久久久国产精品厨房| 91国内精品野花午夜精品| 日本成人中文字幕| 国产亚洲一区二区在线观看| 91久久精品一区二区三区| 日本亚洲电影天堂| 中文字幕在线不卡视频| 欧美精品aⅴ在线视频| 国产高清精品在线| 亚洲国产毛片aaaaa无费看| xfplay精品久久| 日本精品一级二级| 国产成人亚洲精品狼色在线| 亚洲国产精品自拍| 国产精品女主播在线观看| 欧美精品在线一区二区| 不卡的av在线播放| 蜜桃精品视频在线| 一二三区精品视频| 精品av久久707| 欧美日韩国产色站一区二区三区| 国产91露脸合集magnet| 午夜欧美在线一二页| 国产精品对白交换视频| 亚洲精品一区二区在线观看| 欧美肥大bbwbbw高潮| av成人免费在线观看| 国产伦精品一区二区三区免费迷 | 波波电影院一区二区三区| 视频一区二区欧美| 亚洲精品免费播放| 欧美国产欧美综合| 精品国产乱码久久久久久久久 | 99热国产精品| 国产激情偷乱视频一区二区三区| 午夜精品福利一区二区蜜股av| 国产精品色眯眯| 26uuu另类欧美| 欧美一区二区三区免费大片| 在线观看亚洲a| 色欧美日韩亚洲| jvid福利写真一区二区三区| 国产一区二区三区在线观看免费 | 亚洲一二三四区| 亚洲视频在线一区| 国产欧美日韩一区二区三区在线观看 | 精品一区二区国语对白| 美女在线一区二区| 日韩av不卡一区二区| 偷拍亚洲欧洲综合| 日韩电影网1区2区| 三级不卡在线观看| 午夜日韩在线电影| 午夜精品久久久久久久久久| 夜夜嗨av一区二区三区中文字幕| 麻豆精品久久精品色综合| 亚洲成人黄色小说| 亚洲成av人影院| 欧美aⅴ一区二区三区视频| 日本不卡中文字幕| 久久不见久久见免费视频7 | 五月综合激情日本mⅴ| 日韩黄色在线观看| 久久99热99| 国产一区二区福利| 99精品黄色片免费大全| 欧美怡红院视频| 91精品国产色综合久久| 欧美va在线播放| 国产精品热久久久久夜色精品三区 | 波多野结衣91| 欧美天堂一区二区三区| 这里只有精品视频在线观看| 日韩欧美国产不卡| 国产日产亚洲精品系列| 综合分类小说区另类春色亚洲小说欧美| 1024成人网色www| 亚洲高清视频在线| 经典三级视频一区| 99精品视频在线免费观看| 在线观看一区二区视频| 日韩欧美不卡在线观看视频| 亚洲丶国产丶欧美一区二区三区| 琪琪久久久久日韩精品| 国产高清精品在线| 欧美色图激情小说| 久久―日本道色综合久久| 亚洲色图第一区| 久久福利资源站| 91亚洲永久精品| 欧美一级免费大片| 亚洲欧洲美洲综合色网| 美日韩一区二区三区| 成人av手机在线观看| 日韩一级免费观看| 亚洲精品视频在线观看网站| 精品亚洲免费视频| 欧美在线你懂的| 国产精品色哟哟网站| 青青国产91久久久久久| 91浏览器打开| 国产午夜精品美女毛片视频| 亚洲国产精品久久久男人的天堂| 国产黄色精品视频| 91精品国产综合久久精品| 亚洲日本在线a| 国产精品一卡二卡在线观看| 欧美日韩一级视频| 亚洲欧美另类久久久精品2019| 国模一区二区三区白浆| 337p亚洲精品色噜噜狠狠| 中文字幕日本乱码精品影院| 国内成+人亚洲+欧美+综合在线| 欧美剧情片在线观看| 亚洲欧美一区二区三区孕妇| 国产在线视频一区二区| 日韩一区二区三区视频在线 | 国产精品第四页| 国产一区二区三区不卡在线观看 | 欧美中文一区二区三区| 久久综合色天天久久综合图片| 午夜久久久久久电影| 91黄色免费看| 亚洲视频在线观看三级| 成人午夜激情影院| 国产欧美日韩卡一| 极品尤物av久久免费看| 欧美不卡视频一区| 日本欧美一区二区在线观看| 欧美日韩一本到| 视频一区视频二区在线观看| 欧美区在线观看| 肉肉av福利一精品导航|