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

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

?? cookie.java

?? html to xml convertor
?? JAVA
字號:
// 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/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一区二区三区免费野_久草精品视频
久久精品在这里| 激情欧美一区二区| 国产一区二区三区免费观看| 99久久精品久久久久久清纯| 欧美一级片在线看| 亚洲色图制服诱惑| 国产黄人亚洲片| 日韩一卡二卡三卡国产欧美| 一区二区三区四区视频精品免费| 国产一区二区三区蝌蚪| 欧美疯狂性受xxxxx喷水图片| 综合av第一页| 99精品视频在线播放观看| 26uuu色噜噜精品一区| 丝袜美腿一区二区三区| 色综合色狠狠天天综合色| 国产女主播一区| 黑人精品欧美一区二区蜜桃| 91精品国产91热久久久做人人| 亚洲综合久久久| 色爱区综合激月婷婷| 最新久久zyz资源站| 国产成人在线看| 亚洲国产精品二十页| 国产传媒日韩欧美成人| 国产日韩欧美一区二区三区乱码 | 日韩激情视频网站| 色婷婷激情综合| 综合网在线视频| 99久久精品久久久久久清纯| 久久久国产精品不卡| 国产大片一区二区| 中文字幕乱码亚洲精品一区 | 欧美性猛交xxxxxxxx| 亚洲摸摸操操av| 色婷婷av一区二区| 亚洲国产综合人成综合网站| 欧美另类变人与禽xxxxx| 亚洲国产综合91精品麻豆| 欧美日韩国产欧美日美国产精品| 亚洲一区二区综合| 欧美精品第一页| 毛片一区二区三区| 国产亚洲精品资源在线26u| 国产成人精品免费一区二区| 国产精品的网站| 欧美亚洲国产bt| 久久 天天综合| 国产精品网站在线播放| 一本一本大道香蕉久在线精品| 一区二区三区电影在线播| 欧美剧情片在线观看| 国内成人精品2018免费看| 中文字幕av不卡| 欧美日韩国产影片| 狠狠色丁香婷婷综合| 亚洲欧美综合另类在线卡通| 在线观看视频一区二区欧美日韩| 日本欧美一区二区| 国产色产综合产在线视频| 99视频有精品| 日本欧美加勒比视频| 国产欧美日韩在线看| 欧美日韩一区中文字幕| 国产一区二区网址| 亚洲男女一区二区三区| 精品剧情v国产在线观看在线| 99这里都是精品| 毛片av一区二区| 一区二区三区中文在线观看| ww久久中文字幕| 欧美三级午夜理伦三级中视频| 久久69国产一区二区蜜臀| 日韩一区日韩二区| 欧美一区二区三区四区在线观看| 成人aa视频在线观看| 欧美bbbbb| 亚洲综合av网| 久久精品人人爽人人爽| 精品视频在线看| 不卡的av在线| 激情小说欧美图片| 天天亚洲美女在线视频| 亚洲欧洲日产国码二区| 精品国产露脸精彩对白| 欧美亚洲禁片免费| 不卡的电影网站| 国产98色在线|日韩| 免费视频最近日韩| 亚洲国产一区二区a毛片| 欧美国产综合色视频| 精品电影一区二区| 51久久夜色精品国产麻豆| 97精品久久久午夜一区二区三区 | 老司机午夜精品| 一区二区视频免费在线观看| 中文成人av在线| 国产欧美一区二区在线观看| 欧美xxxxx裸体时装秀| 51精品秘密在线观看| 91视频在线看| 成人av网站在线| 国产成人精品免费在线| 国产精品一品视频| 韩国成人福利片在线播放| 三级一区在线视频先锋| 亚洲国产一区二区在线播放| 亚洲精品综合在线| 亚洲欧洲无码一区二区三区| 国产精品久久久久四虎| 国产精品久久久一本精品| 久久久国产精华| www成人在线观看| 久久综合成人精品亚洲另类欧美 | 精品剧情v国产在线观看在线| 337p亚洲精品色噜噜噜| 欧美精品一卡两卡| 欧美一级午夜免费电影| 91精品国产综合久久精品| 欧美一卡二卡在线观看| 日韩欧美在线不卡| 精品美女一区二区三区| 国产亚洲精品福利| 中文字幕在线观看不卡| 成人欧美一区二区三区黑人麻豆 | 在线精品视频一区二区三四| 色婷婷av一区二区三区大白胸| av网站免费线看精品| 色综合久久中文字幕综合网| 色婷婷综合五月| 欧美三级电影网| 欧美大尺度电影在线| 国产日韩精品一区二区浪潮av | 91色乱码一区二区三区| 91激情五月电影| 5566中文字幕一区二区电影| 精品捆绑美女sm三区| 国产精品丝袜久久久久久app| 中文字幕亚洲综合久久菠萝蜜| 亚洲人吸女人奶水| 日本vs亚洲vs韩国一区三区| 国产精品一区二区在线观看网站| 成人免费视频播放| 欧美性色黄大片手机版| 精品剧情在线观看| 亚洲特黄一级片| 久久精品av麻豆的观看方式| 成人丝袜18视频在线观看| 欧美最猛性xxxxx直播| 日韩精品一区二区三区在线| 国产精品欧美极品| 日韩精品亚洲专区| 成人综合在线观看| 欧美色综合影院| 亚洲国产精品传媒在线观看| 亚洲大片在线观看| 成人免费视频视频| 欧美精品免费视频| 中文成人av在线| 久久成人麻豆午夜电影| 色综合久久综合网97色综合| 欧美变态tickling挠脚心| 亚洲男人天堂一区| 国产精品伊人色| 欧美日韩精品久久久| 中文字幕中文字幕一区| 美女脱光内衣内裤视频久久影院| 99视频精品全部免费在线| 日韩欧美一区在线观看| 一区二区三区在线视频免费 | 在线免费观看日本欧美| 久久精品一区四区| 日韩国产欧美三级| 91福利精品视频| 国产欧美日韩精品一区| 蜜桃视频第一区免费观看| 欧美探花视频资源| 综合激情成人伊人| 成人av免费在线观看| 久久色.com| 久久精品久久99精品久久| 欧美日韩午夜影院| 艳妇臀荡乳欲伦亚洲一区| 成人黄色电影在线| 国产亚洲精品免费| 国产最新精品免费| 精品粉嫩aⅴ一区二区三区四区| 亚洲国产欧美在线| 91久久人澡人人添人人爽欧美| 日韩一区日韩二区| 99精品视频在线播放观看| 国产精品久久久久久妇女6080| 国产一区二区精品久久99| 26uuu精品一区二区在线观看| 蜜臀av一级做a爰片久久| 91精品国模一区二区三区| 视频精品一区二区| 欧美一区二区免费观在线| 美女在线视频一区| 日韩精品中文字幕一区二区三区|