📄 cookiemanager.java
字号:
package net.matuschek.http.cookie;
/*********************************************
Copyright (c) 2001 by Daniel Matuschek
*********************************************/
import java.net.URL;
/**
* This interface defines a container for storing cookies.
*
* @author Daniel Matuschek
* @version $Id $
*/
public interface CookieManager
{
/**
* Add this cookie. If there is already a cookie with the same name and
* path it will be owerwritten by the new cookie.
* @param cookie a Cookie that will be stored in this cookie manager
*/
public void add(Cookie cookie);
/**
* How many cookies are currently stored in this CookieManager ?
* @return the number of stored Cookies
*/
public int countCookies();
/**
* Get the cookie values for the given URL.
* @return a String containing a list of NAME=VALUE pairs (separated by
* semicolon) containing all cookie values that are valid for the
* given URL, <br/ >
* null if no cookies can be found for this URL
*/
public String cookiesForURL(URL u);
/**
* Remove all stored cookies
*/
public void clear();
/**
* <b>Insiders BugFix</b>
* This method finishes the CleanUpThread.
*/
public void finish();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -