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

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

?? cookie.java

?? html解析包 可以很方便的解析html 純java 實現
?? JAVA
字號:
// HTMLParser Library $Name: v1_6_20051112 $ - 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: 2005/05/15 11:49:04 $// $Revision: 1.3 $//// 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 ("=");        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一区二区三区免费野_久草精品视频
国产欧美一区二区精品仙草咪| 亚洲免费在线电影| 一区二区三区电影在线播| 国产精品无码永久免费888| 欧美精品一区二区在线播放| 91麻豆精品国产91久久久久久| 日韩一区二区三区高清免费看看| 成人免费在线视频观看| 欧美日韩小视频| 国产午夜精品一区二区三区嫩草| 亚洲精品你懂的| 精品一区在线看| 色美美综合视频| 亚洲成av人片在线观看| 国产麻豆9l精品三级站| 欧美午夜电影网| 国产亚洲一区字幕| 亚洲欧美激情在线| 中文字幕综合网| 美国十次了思思久久精品导航| eeuss鲁片一区二区三区在线看| 精品成人一区二区| 中文字幕在线免费不卡| 精品一区二区免费在线观看| 欧美亚洲高清一区二区三区不卡| 国产精品视频在线看| 大美女一区二区三区| 琪琪久久久久日韩精品| 日韩一区二区在线播放| 国产精品久久久久9999吃药| 全国精品久久少妇| 9i在线看片成人免费| 久久综合久久综合九色| 洋洋成人永久网站入口| 国产不卡一区视频| 色欧美片视频在线观看| 亚洲三级电影网站| 国产大陆a不卡| 日韩一区二区在线观看视频| 亚洲综合一二区| 91成人在线观看喷潮| 国产精品免费久久| 国产一区二区三区在线观看免费视频| 日韩一区二区在线免费观看| 午夜不卡av在线| 91电影在线观看| 中文字幕精品一区| 国产在线精品免费| 亚洲精品在线电影| 欧美日韩久久久| 亚洲国产精品影院| 欧美性欧美巨大黑白大战| 一区二区三区中文字幕精品精品| 91麻豆免费在线观看| 亚洲激情图片一区| 日韩精品一区二区三区视频| 国产高清视频一区| 免费在线观看视频一区| 黄色成人免费在线| 日韩欧美黄色影院| 91啪在线观看| 亚洲视频在线观看一区| 国产精品不卡视频| 欧美最新大片在线看| 免费成人在线视频观看| 国产精品毛片久久久久久| 欧美网站一区二区| 国产又黄又大久久| 中文字幕在线观看一区二区| 制服视频三区第一页精品| 国产成人av在线影院| 亚洲中国最大av网站| 久久综合网色—综合色88| 欧美亚洲禁片免费| 国产酒店精品激情| 日韩**一区毛片| 亚洲欧美日韩在线播放| 精品区一区二区| 日韩美女在线视频| 成人天堂资源www在线| 国产女同性恋一区二区| 色丁香久综合在线久综合在线观看| 精品一区二区免费在线观看| 国产一区二区电影| 欧美影院午夜播放| 日韩免费视频线观看| 中文字幕在线视频一区| 国产.欧美.日韩| 中文字幕一区二区三中文字幕| proumb性欧美在线观看| 亚洲欧洲日产国产综合网| 色婷婷久久久久swag精品| 亚洲国产综合91精品麻豆| 一本大道综合伊人精品热热| 久久99日本精品| 精品国产成人系列| 99久精品国产| 日韩精品91亚洲二区在线观看| 久久视频一区二区| 在线一区二区观看| 国产在线精品一区二区| 一区二区在线观看免费| 久久综合久久99| 欧美色图12p| 国产69精品久久久久毛片| 午夜亚洲国产au精品一区二区| 久久久美女毛片| 欧美羞羞免费网站| 国产成人午夜电影网| 五月婷婷激情综合| 中文字幕日本不卡| 欧美成人r级一区二区三区| 色中色一区二区| 国产精品亚洲午夜一区二区三区 | 久久超级碰视频| 欧美一级二级三级蜜桃| 亚洲精品伦理在线| 欧美刺激午夜性久久久久久久| 97se狠狠狠综合亚洲狠狠| 欧美一区二区三区白人| av一本久道久久综合久久鬼色| 免费成人在线观看| 亚洲制服丝袜一区| 国产精品日韩精品欧美在线| 欧美电影免费观看高清完整版在线观看| 91麻豆国产在线观看| 国产成人免费在线观看不卡| 欧美色视频一区| 亚洲不卡一区二区三区| 欧美三级午夜理伦三级中视频| 国产无一区二区| 免费欧美日韩国产三级电影| 91丨九色丨尤物| 欧美成人精品二区三区99精品| 亚洲色图在线看| ...av二区三区久久精品| 欧美在线观看一二区| 国产suv一区二区三区88区| 久久国产精品免费| 首页国产欧美日韩丝袜| 亚洲综合一区在线| 亚洲欧美日韩国产手机在线| 中文字幕va一区二区三区| 久久久久国产精品免费免费搜索| 日韩区在线观看| 欧美高清一级片在线| 欧美日韩国产一区二区三区地区| 色成人在线视频| 91亚洲国产成人精品一区二区三| 成人av网在线| 成人手机电影网| 岛国一区二区在线观看| 国产成人福利片| 顶级嫩模精品视频在线看| 精品一二三四在线| 韩国午夜理伦三级不卡影院| 久久精品国产99国产| 欧美综合视频在线观看| 亚洲福利电影网| 日韩三级视频在线观看| 久久疯狂做爰流白浆xx| 亚洲国产成人午夜在线一区| 精品一二三四在线| 激情五月婷婷综合| 国产真实乱子伦精品视频| 国模少妇一区二区三区| 国产精品一区二区你懂的| 国产一区视频在线看| 国产精品影视天天线| 激情久久五月天| 国内精品视频666| 久久66热偷产精品| 国产精一品亚洲二区在线视频| 国产在线视频一区二区三区| 国产高清不卡一区二区| 成人av在线看| 一本大道久久a久久综合| 在线观看一区二区视频| 在线电影院国产精品| 欧美一级在线免费| 久久品道一品道久久精品| 中文字幕国产一区二区| 亚洲欧美视频在线观看视频| 亚洲综合自拍偷拍| 日本aⅴ亚洲精品中文乱码| 久久精品国产99国产| 成人黄色av电影| 色美美综合视频| 91精品国产一区二区三区香蕉| 一区二区三区欧美激情| 日本欧美加勒比视频| 亚洲精品亚洲人成人网| 国产精品毛片久久久久久| 国产精品美女久久久久aⅴ| 欧美不卡一区二区三区| 欧美变态tickling挠脚心| 久久久五月婷婷| 国产精品欧美极品| 亚洲一区二三区| 狠狠色丁香婷综合久久|