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

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

?? store.java

?? java Email you can use it to send email to others
?? JAVA
字號:
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common Development * and Distribution License("CDDL") (collectively, the "License").  You * may not use this file except in compliance with the License. You can obtain * a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL.html * or glassfish/bootstrap/legal/LICENSE.txt.  See the License for the specific * language governing permissions and limitations under the License. * * When distributing the software, include this License Header Notice in each * file and include the License file at glassfish/bootstrap/legal/LICENSE.txt. * Sun designates this particular file as subject to the "Classpath" exception * as provided by Sun in the GPL Version 2 section of the License file that * accompanied this code.  If applicable, add the following below the License * Header, with the fields enclosed by brackets [] replaced by your own * identifying information: "Portions Copyrighted [year] * [name of copyright owner]" * * Contributor(s): * * If you wish your version of this file to be governed by only the CDDL or * only the GPL Version 2, indicate your decision by adding "[Contributor] * elects to include this software in this distribution under the [CDDL or GPL * Version 2] license."  If you don't indicate a single choice of license, a * recipient has the option to distribute your version of this file under * either the CDDL, the GPL Version 2 or to extend the choice of license to * its licensees as provided above.  However, if you add GPL Version 2 code * and therefore, elected the GPL Version 2 license, then the option applies * only if the new code is made subject to such option by the copyright * holder. *//* * @(#)Store.java	1.28 07/05/04 */package javax.mail;import java.io.*;import java.net.*;import java.util.*;import javax.mail.event.*;/** * An abstract class that models a message store and its * access protocol, for storing and retrieving messages.  * Subclasses provide actual implementations. <p> * * Note that <code>Store</code> extends the <code>Service</code> * class, which provides many common methods for naming stores, * connecting to stores, and listening to connection events. * * @author John Mani * @author Bill Shannon * @version 1.28, 07/05/04 * * @see javax.mail.Service * @see javax.mail.event.ConnectionEvent * @see javax.mail.event.StoreEvent */public abstract class Store extends Service {    /**     * Constructor.     *     * @param	session Session object for this Store.     * @param	urlname	URLName object to be used for this Store     */    protected Store(Session session, URLName urlname) {	super(session, urlname);    }    /**     * Returns a Folder object that represents the 'root' of     * the default namespace presented to the user by the Store.     *     * @return the root Folder     * @exception IllegalStateException if this Store is not connected.     */    public abstract Folder getDefaultFolder() throws MessagingException;    /**     * Return the Folder object corresponding to the given name. Note     * that a Folder object is returned even if the named folder does     * not physically exist on the Store. The <code>exists()</code>      * method on the folder object indicates whether this folder really     * exists. <p>     *     * Folder objects are not cached by the Store, so invoking this     * method on the same name multiple times will return that many     * distinct Folder objects.     *     * @param name 	The name of the Folder. In some Stores, name can     *			be an absolute path if it starts with the     *			hierarchy delimiter. Else it is interpreted     *			relative to the 'root' of this namespace.     * @return		Folder object     * @exception 	IllegalStateException if this Store is not connected.     * @see 		Folder#exists     * @see		Folder#create     */    public abstract Folder getFolder(String name)			throws MessagingException;    /**     * Return a closed Folder object, corresponding to the given      * URLName. The store specified in the given URLName should     * refer to this Store object. <p>     *     * Implementations of this method may obtain the name of the     * actual folder using the <code>getFile()</code> method on     * URLName, and use that name to create the folder.     *      * @param url	URLName that denotes a folder     * @see 		URLName     * @exception 	IllegalStateException if this Store is not connected.     * @return		Folder object     */    public abstract Folder getFolder(URLName url)			throws MessagingException;    /**     * Return a set of folders representing the <i>personal</i> namespaces     * for the current user.  A personal namespace is a set of names that     * is considered within the personal scope of the authenticated user.     * Typically, only the authenticated user has access to mail folders     * in their personal namespace.  If an INBOX exists for a user, it     * must appear within the user's personal namespace.  In the     * typical case, there should be only one personal namespace for each     * user in each Store. <p>     *     * This implementation returns an array with a single entry containing     * the return value of the <code>getDefaultFolder</code> method.     * Subclasses should override this method to return appropriate information.     *     * @exception 	IllegalStateException if this Store is not connected.     * @return		array of Folder objects     * @since		JavaMail 1.2     */    public Folder[] getPersonalNamespaces() throws MessagingException {	return new Folder[] { getDefaultFolder() };    }    /**     * Return a set of folders representing the namespaces for     * <code>user</code>.  The namespaces returned represent the     * personal namespaces for the user.  To access mail folders in the     * other user's namespace, the currently authenticated user must be     * explicitly granted access rights.  For example, it is common for     * a manager to grant to their secretary access rights to their     * mail folders. <p>     *     * This implementation returns an empty array.  Subclasses should     * override this method to return appropriate information.     *     * @exception 	IllegalStateException if this Store is not connected.     * @return		array of Folder objects     * @since		JavaMail 1.2     */    public Folder[] getUserNamespaces(String user)				throws MessagingException {	return new Folder[0];    }    /**     * Return a set of folders representing the <i>shared</i> namespaces.     * A shared namespace is a namespace that consists of mail folders     * that are intended to be shared amongst users and do not exist     * within a user's personal namespace. <p>     *     * This implementation returns an empty array.  Subclasses should     * override this method to return appropriate information.     *     * @exception 	IllegalStateException if this Store is not connected.     * @return		array of Folder objects     * @since		JavaMail 1.2     */    public Folder[] getSharedNamespaces() throws MessagingException {	return new Folder[0];    }    // Vector of Store listeners    private volatile Vector storeListeners = null;    /**     * Add a listener for StoreEvents on this Store. <p>     *     * The default implementation provided here adds this listener     * to an internal list of StoreListeners.     *     * @param l         the Listener for Store events     * @see             javax.mail.event.StoreEvent     */    public synchronized void addStoreListener(StoreListener l) {	if (storeListeners == null)	    storeListeners = new Vector();	storeListeners.addElement(l);    }    /**     * Remove a listener for Store events. <p>     *     * The default implementation provided here removes this listener     * from the internal list of StoreListeners.     *     * @param l         the listener     * @see             #addStoreListener     */    public synchronized void removeStoreListener(StoreListener l) {	if (storeListeners != null)	    storeListeners.removeElement(l);    }    /**     * Notify all StoreListeners. Store implementations are     * expected to use this method to broadcast StoreEvents. <p>     *     * The provided default implementation queues the event into     * an internal event queue. An event dispatcher thread dequeues     * events from the queue and dispatches them to the registered     * StoreListeners. Note that the event dispatching occurs     * in a separate thread, thus avoiding potential deadlock problems.     */    protected void notifyStoreListeners(int type, String message) {   	if (storeListeners == null)	    return;		StoreEvent e = new StoreEvent(this, type, message);	queueEvent(e, storeListeners);    }    // Vector of folder listeners    private volatile Vector folderListeners = null;    /**     * Add a listener for Folder events on any Folder object      * obtained from this Store. FolderEvents are delivered to     * FolderListeners on the affected Folder as well as to      * FolderListeners on the containing Store. <p>     *     * The default implementation provided here adds this listener     * to an internal list of FolderListeners.     *     * @param l         the Listener for Folder events     * @see             javax.mail.event.FolderEvent     */    public synchronized void addFolderListener(FolderListener l) {   	if (folderListeners == null)	    folderListeners = new Vector();	folderListeners.addElement(l);    }    /**     * Remove a listener for Folder events. <p>     *     * The default implementation provided here removes this listener     * from the internal list of FolderListeners.     *     * @param l         the listener     * @see             #addFolderListener     */    public synchronized void removeFolderListener(FolderListener l) {   	if (folderListeners != null)	    folderListeners.removeElement(l);    }    /**     * Notify all FolderListeners. Store implementations are     * expected to use this method to broadcast Folder events. <p>     *     * The provided default implementation queues the event into     * an internal event queue. An event dispatcher thread dequeues     * events from the queue and dispatches them to the registered     * FolderListeners. Note that the event dispatching occurs     * in a separate thread, thus avoiding potential deadlock problems.     *     * @param	type	type of FolderEvent     * @param	folder	affected Folder     * @see		#notifyFolderRenamedListeners     */    protected void notifyFolderListeners(int type, Folder folder) {   	if (folderListeners == null) 	    return;		FolderEvent e = new FolderEvent(this, folder, type);	queueEvent(e, folderListeners);    }    /**     * Notify all FolderListeners about the renaming of a folder.     * Store implementations are expected to use this method to broadcast      * Folder events indicating the renaming of folders. <p>     *     * The provided default implementation queues the event into     * an internal event queue. An event dispatcher thread dequeues     * events from the queue and dispatches them to the registered     * FolderListeners. Note that the event dispatching occurs     * in a separate thread, thus avoiding potential deadlock problems.     *     * @param	oldF	the folder being renamed     * @param	newF	the folder representing the new name.     * @since	JavaMail 1.1     */    protected void notifyFolderRenamedListeners(Folder oldF, Folder newF) {   	if (folderListeners == null) 	    return;		FolderEvent e = new FolderEvent(this, oldF, newF,FolderEvent.RENAMED);	queueEvent(e, folderListeners);    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人av网在线| 亚洲成a人片在线观看中文| 精品国产乱码久久久久久免费| 欧美日韩不卡在线| 久久久欧美精品sm网站| 一区二区三区视频在线观看| 日韩av电影免费观看高清完整版在线观看| 国产在线精品一区二区三区不卡| fc2成人免费人成在线观看播放| 欧美电影免费观看高清完整版| 亚洲精品欧美在线| 成人h动漫精品一区二| 亚洲精品videosex极品| 91精品国产欧美日韩| 中文字幕欧美一| 久久精品国产一区二区| 欧美精品1区2区3区| 亚洲国产va精品久久久不卡综合| 一本大道久久精品懂色aⅴ | 国产精品亚洲视频| 欧美丰满美乳xxx高潮www| 蜜臀久久99精品久久久久宅男| 欧美无乱码久久久免费午夜一区| 国产精品久久久久久户外露出| 国产在线视视频有精品| 精品女同一区二区| 日本va欧美va欧美va精品| 欧美一区二区三区四区五区| 国产精品1区2区3区在线观看| 亚洲免费观看视频| 91国产丝袜在线播放| 亚洲乱码国产乱码精品精的特点 | 亚洲一区二区三区小说| 91国模大尺度私拍在线视频 | 精品一区二区国语对白| 欧美一级欧美三级| 91小视频免费观看| 国产日韩在线不卡| 成人一区二区视频| 国产精品久久99| 日韩欧美综合一区| 国产成人aaa| 亚洲国产精品精华液ab| 91在线一区二区| 一区二区三区四区在线| 国产午夜精品福利| 不卡视频免费播放| 欧美日韩黄色影视| 国产成人在线视频网址| 国产精品每日更新| 91首页免费视频| 国产伦精品一区二区三区免费| 丝袜美腿一区二区三区| 精品电影一区二区| 3d成人h动漫网站入口| 久国产精品韩国三级视频| 亚洲一区二区在线播放相泽| 国产精品久久久久久久久晋中| 精品欧美黑人一区二区三区| 欧美精品三级在线观看| 欧美亚洲日本国产| 99在线精品观看| 成人妖精视频yjsp地址| 国产精品自拍在线| 国产精品中文欧美| 国产在线看一区| 久久国产精品免费| 久久超碰97中文字幕| 麻豆精品久久精品色综合| 蜜臀久久99精品久久久久久9| 首页国产欧美日韩丝袜| 午夜久久久久久久久| 久久久久国产精品免费免费搜索| 日韩欧美的一区二区| 91精品国产丝袜白色高跟鞋| 欧美日韩免费高清一区色橹橹| 久久电影国产免费久久电影| 视频在线观看一区二区三区| 亚洲制服丝袜一区| 亚洲成va人在线观看| 五月激情六月综合| 日韩福利电影在线| 久久成人免费电影| 国产精品白丝jk白祙喷水网站| 福利视频网站一区二区三区| av一区二区三区黑人| 欧美成人猛片aaaaaaa| 日韩欧美高清在线| 久久精品欧美一区二区三区麻豆| 国产片一区二区| 日韩美女久久久| 精品福利视频一区二区三区| 久久久蜜桃精品| 中文字幕在线观看不卡| 一区二区三区在线观看网站| 亚洲成人一区二区在线观看| 蜜桃视频一区二区三区在线观看| 国产一区二区精品久久91| 不卡视频一二三| 欧美视频在线观看一区二区| 91精品国产综合久久福利 | 国产精品99久| 99精品欧美一区| 欧美日本一道本在线视频| 26uuu欧美| 欧美一区二区三级| 日韩精品一区二区三区蜜臀 | 91丨porny丨蝌蚪视频| 欧美日韩精品系列| www国产成人| 亚洲免费观看视频| 日本怡春院一区二区| 国产91精品欧美| 欧美乱妇20p| 亚洲国产精品黑人久久久| 亚洲成人先锋电影| 国产91在线看| 777xxx欧美| 中文字幕在线观看一区| 麻豆久久久久久| 色网站国产精品| 久久久久9999亚洲精品| 亚洲一区二区高清| 成人免费观看男女羞羞视频| 678五月天丁香亚洲综合网| 国产欧美一区二区三区沐欲| 亚洲高清久久久| 97成人超碰视| 欧美精品一区在线观看| 亚洲精品va在线观看| 国产黄色成人av| 欧美一卡二卡三卡| 一区二区国产盗摄色噜噜| 国产精品亚洲成人| 日韩女优av电影| 偷拍与自拍一区| 色偷偷久久人人79超碰人人澡| 国产亚洲一区字幕| 久草在线在线精品观看| 欧美美女喷水视频| 亚洲精品免费在线观看| 福利视频网站一区二区三区| 欧美mv日韩mv国产网站app| 亚洲高清免费在线| 色婷婷久久久久swag精品| 国产欧美日韩综合精品一区二区| 免费成人av在线| 欧美日韩精品一区二区三区四区| 综合久久久久久| 成人高清视频免费观看| 久久久国产午夜精品| 韩国欧美一区二区| 精品久久久三级丝袜| 老司机精品视频一区二区三区| 欧美日韩国产在线播放网站| 一区二区三区在线观看视频| 91免费看视频| 亚洲婷婷综合久久一本伊一区| 国产成人精品三级| 久久综合九色综合欧美98| 久久精品国产精品亚洲红杏| 欧美福利一区二区| 婷婷久久综合九色综合绿巨人| 欧美亚洲综合网| 午夜精品一区二区三区三上悠亚| 欧美亚洲高清一区二区三区不卡| 亚洲男同1069视频| 91黄色免费版| 婷婷开心激情综合| 欧美一级黄色片| 精品无人区卡一卡二卡三乱码免费卡 | 一区在线中文字幕| 99国产欧美另类久久久精品| 亚洲欧美经典视频| 欧美性三三影院| 日韩电影网1区2区| 精品动漫一区二区三区在线观看| 国产精品一品视频| 国产精品午夜在线| 91麻豆成人久久精品二区三区| 椎名由奈av一区二区三区| 欧美在线免费观看亚洲| 精品国产一区二区三区四区四 | 精品一区二区三区免费视频| 国产亚洲欧美色| www.日韩在线| 亚洲综合色噜噜狠狠| 欧美精品aⅴ在线视频| 精品一区中文字幕| 国产精品无人区| 91精品福利视频| 久久国产婷婷国产香蕉| 中文字幕精品一区二区精品绿巨人| 不卡的看片网站| 亚洲国产毛片aaaaa无费看| 亚洲欧美一区二区久久| 555夜色666亚洲国产免| 国产美女视频91| 一区二区三区蜜桃| 精品区一区二区|