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

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

?? session.java

?? java Email you can use it to send email to others
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
     * returns the Provider that appeared first in the      * configuration files. If an implementation for the protocol      * isn't found, throws NoSuchProviderException     *     * @param  protocol  Configured protocol (i.e. smtp, imap, etc)     * @return Currently configured Provider for the specified protocol     * @exception	NoSuchProviderException If a provider for the given     *			protocol is not found.     */    public synchronized Provider getProvider(String protocol)	                                throws NoSuchProviderException {	if (protocol == null || protocol.length() <= 0) {	    throw new NoSuchProviderException("Invalid protocol: null");	}	Provider _provider = null;	// check if the mail.<protocol>.class property exists	String _className = props.getProperty("mail."+protocol+".class");	if (_className != null) {	    if (debug) {		pr("DEBUG: mail."+protocol+				   ".class property exists and points to " + 				   _className);	    }	    _provider = (Provider)providersByClassName.get(_className);	} 	if (_provider != null) {	    return _provider;	} else {	    // returning currently default protocol in providersByProtocol	    _provider = (Provider)providersByProtocol.get(protocol);	}	if (_provider == null) {	    throw new NoSuchProviderException("No provider for " + protocol);	} else {	    if (debug) {		pr("DEBUG: getProvider() returning " + 				   _provider.toString());	    }	    return _provider;	}    }    /**     * Set the passed Provider to be the default implementation     * for the protocol in Provider.protocol overriding any previous values.     *     * @param provider Currently configured Provider which will be      * set as the default for the protocol     * @exception	NoSuchProviderException If the provider passed in     *			is invalid.     */    public synchronized void setProvider(Provider provider)				throws NoSuchProviderException {	if (provider == null) {	    throw new NoSuchProviderException("Can't set null provider");	}	providersByProtocol.put(provider.getProtocol(), provider);	props.put("mail." + provider.getProtocol() + ".class", 		  provider.getClassName());    }    /**     * Get a Store object that implements this user's desired Store     * protocol. The <code>mail.store.protocol</code> property specifies the     * desired protocol. If an appropriate Store object is not obtained,      * NoSuchProviderException is thrown     *     * @return 		a Store object      * @exception	NoSuchProviderException If a provider for the given     *			protocol is not found.     */    public Store getStore() throws NoSuchProviderException {	return getStore(getProperty("mail.store.protocol"));    }    /**     * Get a Store object that implements the specified protocol. If an     * appropriate Store object cannot be obtained,      * NoSuchProviderException is thrown.     *     * @param	        protocol     * @return		a Store object      * @exception	NoSuchProviderException If a provider for the given     *			protocol is not found.     */    public Store getStore(String protocol) throws NoSuchProviderException {	return getStore(new URLName(protocol, null, -1, null, null, null));    }    /**     * Get a Store object for the given URLName. If the requested Store     * object cannot be obtained, NoSuchProviderException is thrown.     *     * The "scheme" part of the URL string (Refer RFC 1738) is used      * to locate the Store protocol. <p>     *     * @param	url	URLName that represents the desired Store     * @return		a closed Store object     * @see		#getFolder(URLName)     * @see		javax.mail.URLName     * @exception	NoSuchProviderException If a provider for the given     *			URLName is not found.     */    public Store getStore(URLName url) throws NoSuchProviderException {	String protocol = url.getProtocol();	Provider p = getProvider(protocol);	return getStore(p, url);    }    /**     * Get an instance of the store specified by Provider. Instantiates     * the store and returns it.     *      * @param provider Store Provider that will be instantiated     * @return Instantiated Store     * @exception	NoSuchProviderException If a provider for the given     *			Provider is not found.     */    public Store getStore(Provider provider) throws NoSuchProviderException {	return getStore(provider, null);    }    /**     * Get an instance of the store specified by Provider. If the URLName     * is not null, uses it, otherwise creates a new one. Instantiates     * the store and returns it. This is a private method used by     * getStore(Provider) and getStore(URLName)     *      * @param provider Store Provider that will be instantiated     * @param url      URLName used to instantiate the Store     * @return Instantiated Store     * @exception	NoSuchProviderException If a provider for the given     *			Provider/URLName is not found.     */    private Store getStore(Provider provider, URLName url) 	throws NoSuchProviderException {	// make sure we have the correct type of provider	if (provider == null || provider.getType() != Provider.Type.STORE ) {	    throw new NoSuchProviderException("invalid provider");	}			try {	    return (Store) getService(provider, url);	} catch (ClassCastException cce) {	    throw new NoSuchProviderException("incorrect class");	}    }    /**     * Get a closed Folder object for the given URLName. If the requested     * Folder object cannot be obtained, null is returned. <p>     *     * The "scheme" part of the URL string (Refer RFC 1738) is used     * to locate the Store protocol. The rest of the URL string (that is,     * the "schemepart", as per RFC 1738) is used by that Store     * in a protocol dependent manner to locate and instantiate the     * appropriate Folder object. <p>     *     * Note that RFC 1738 also specifies the syntax for the      * "schemepart" for IP-based protocols (IMAP4, POP3, etc.).     * Providers of IP-based mail Stores should implement that     * syntax for referring to Folders. <p>     *     * @param	url	URLName that represents the desired folder     * @return		Folder     * @see		#getStore(URLName)     * @see		javax.mail.URLName     * @exception	NoSuchProviderException If a provider for the given     *			URLName is not found.     * @exception	MessagingException if the Folder could not be      *			located or created.     */    public Folder getFolder(URLName url)		throws MessagingException {	// First get the Store	Store store = getStore(url);	store.connect();	return store.getFolder(url);    }    /**     * Get a Transport object that implements this user's desired      * Transport protcol. The <code>mail.transport.protocol</code> property      * specifies the desired protocol. If an appropriate Transport      * object cannot be obtained, MessagingException is thrown.     *     * @return 		a Transport object      * @exception	NoSuchProviderException If the provider is not found.     */    public Transport getTransport() throws NoSuchProviderException {        return getTransport(getProperty("mail.transport.protocol"));    }    /**     * Get a Transport object that implements the specified protocol.     * If an appropriate Transport object cannot be obtained, null is     * returned.     *     * @return 		a Transport object      * @exception	NoSuchProviderException If provider for the given     *			protocol is not found.     */    public Transport getTransport(String protocol)				throws NoSuchProviderException {	return getTransport(new URLName(protocol, null, -1, null, null, null));    }    /**     * Get a Transport object for the given URLName. If the requested      * Transport object cannot be obtained, NoSuchProviderException is thrown.     *     * The "scheme" part of the URL string (Refer RFC 1738) is used      * to locate the Transport protocol. <p>     *     * @param	url	URLName that represents the desired Transport     * @return		a closed Transport object     * @see		javax.mail.URLName     * @exception	NoSuchProviderException If a provider for the given     *			URLName is not found.     */    public Transport getTransport(URLName url) throws NoSuchProviderException {	String protocol = url.getProtocol();	Provider p = getProvider(protocol);	return getTransport(p, url);    }    /**     * Get an instance of the transport specified in the Provider. Instantiates     * the transport and returns it.     *      * @param provider Transport Provider that will be instantiated     * @return Instantiated Transport     * @exception	NoSuchProviderException If provider for the given     *			provider is not found.     */    public Transport getTransport(Provider provider) 	                                     throws NoSuchProviderException {	return getTransport(provider, null);    }    /**     * Get a Transport object that can transport a Message to the     * specified address type.     *     * @param	address     * @return	A Transport object     * @see javax.mail.Address     * @exception	NoSuchProviderException If provider for the      *			Address type is not found     */    public Transport getTransport(Address address) 	                                     throws NoSuchProviderException {	String transportProtocol = (String)addressMap.get(address.getType());	if (transportProtocol == null) {	    throw new NoSuchProviderException("No provider for Address type: "+					      address.getType());	} else {	    return getTransport(transportProtocol);	}    }    /**     * Get a Transport object using the given provider and urlname.     *     * @param	provider	the provider to use     * @param	url		urlname to use (can be null)     * @return A Transport object     * @exception	NoSuchProviderException	If no provider or the provider     *			was the wrong class.	     */    private Transport getTransport(Provider provider, URLName url)					throws NoSuchProviderException {	// make sure we have the correct type of provider	if (provider == null || provider.getType() != Provider.Type.TRANSPORT) {	    throw new NoSuchProviderException("invalid provider");	}	try {	    return (Transport) getService(provider, url);	} catch (ClassCastException cce) {	    throw new NoSuchProviderException("incorrect class");	}    }    /**     * Get a Service object.  Needs a provider object, but will     * create a URLName if needed.  It attempts to instantiate     * the correct class.     *     * @param provider	which provider to use     * @param url	which URLName to use (can be null)     * @exception	NoSuchProviderException	thrown when the class cannot be     *			found or when it does not have the correct constructor     *			(Session, URLName), or if it is not derived from     *			Service.     */    private Object getService(Provider provider, URLName url)					throws NoSuchProviderException {	// need a provider and url	if (provider == null) {	    throw new NoSuchProviderException("null");	}	// create a url if needed	if (url == null) {	    url = new URLName(provider.getProtocol(), null, -1, 			      null, null, null);	}	Object service = null;		// get the ClassLoader associated with the Authenticator	ClassLoader cl;	if (authenticator != null)	    cl = authenticator.getClass().getClassLoader();	else	    cl = this.getClass().getClassLoader();	// now load the class	Class serviceClass = null;	try {	    // First try the "application's" class loader.	    ClassLoader ccl = getContextClassLoader();	    if (ccl != null)		try {		    serviceClass = ccl.loadClass(provider.getClassName());		} catch (ClassNotFoundException ex) {		    // ignore it		}	    if (serviceClass == null)		serviceClass = cl.loadClass(provider.getClassName());	} catch (Exception ex1) {	    // That didn't work, now try the "system" class loader.	    // (Need both of these because JDK 1.1 class loaders	    // may not delegate to their parent class loader.)	    try {		serviceClass = Class.forName(provider.getClassName());	    } catch (Exception ex) {		// Nothing worked, give up.		if (debug) ex.printStackTrace(getDebugOut());		throw new NoSuchProviderException(provider.getProtocol());	    }	}	// construct an instance of the class	try {	    Class[] c = {javax.mail.Session.class, javax.mail.URLName.class};	    Constructor cons = serviceClass.getConstructor(c);	    Object[] o = {this, url};	    service = cons.newInstance(o);	} catch (Exception ex) {	    if (debug) ex.printStackTrace(getDebugOut());	    throw new NoSuchProviderException(provider.getProtocol());	}	return service;    }    /**     * Save a PasswordAuthentication for this (store or transport) URLName.     * If pw is null the entry corresponding to the URLName is removed.     * <p>     * This is normally used only by the store or transport implementations     * to allow authentication information to be shared among multiple     * uses of a session.     */    public void setPasswordAuthentication(URLName url,					  PasswordAuthentication pw) {	if (pw == null)	    authTable.remove(url);	else	    authTable.put(url, pw);    }    /**     * Return any saved PasswordAuthentication for this (store or transport)     * URLName.  Normally used only by store or transport implementations.     *     * @return	the PasswordAuthentication corresponding to the URLName     */    public PasswordAuthentication getPasswordAuthentication(URLName url) {	return (PasswordAuthentication)authTable.get(url);    }    /**     * Call back to the application to get the needed user name and password.     * The application should put up a dialog something like:     * <p> <pre>     * Connecting to &lt;protocol&gt; mail service on host &lt;addr&gt;, port &lt;port&gt;.     * &lt;prompt&gt;     *     * User Name: &lt;defaultUserName&gt;     * Password:     * </pre>     *     * @param	addr		InetAddress of the host.  may be null.     * @param	protocol	protocol scheme (e.g. imap, pop3, etc.)     * @param	prompt		any additional String to show as part of     *                          the prompt; may be null.     * @param	defaultUserName	the default username. may be null.     * @return	the authentication which was collected by the authenticator;      *          may be null.     */    public PasswordAuthentication requestPasswordAuthentication(	InetAddress addr, int port,	String protocol, String prompt, String defaultUserName) {	if (authenticator != null) {	    return authenticator.requestPasswordAuthentication(		addr, port, protocol, prompt, defaultUserName);	} else {	    return null;	}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91国偷自产一区二区开放时间| 欧美日韩大陆在线| 国产亚洲精品超碰| 免费观看日韩电影| 91精品国产福利在线观看| 午夜精品久久久久久久99樱桃| 色香蕉久久蜜桃| 亚洲乱码国产乱码精品精98午夜| 色偷偷久久一区二区三区| 亚洲另类春色国产| 欧美色图在线观看| 亚洲一区在线观看视频| 欧美日韩视频一区二区| 日韩和欧美一区二区| 91麻豆精品国产91久久久资源速度| 亚洲成a人v欧美综合天堂 | 久久国产精品99精品国产| 欧美一级夜夜爽| 美国十次了思思久久精品导航| 欧美一级搡bbbb搡bbbb| 激情小说亚洲一区| 久久精品亚洲精品国产欧美kt∨| 国产精品一二三四区| 国产午夜精品一区二区三区嫩草| 成人一区在线观看| 亚洲免费观看高清完整| 欧美三级乱人伦电影| 三级欧美在线一区| 欧美电影免费观看高清完整版在线| 久久99国产精品麻豆| 国产亚洲精品福利| 91丨porny丨蝌蚪视频| 亚洲图片有声小说| 91精品国产欧美一区二区成人| 久久国产精品99精品国产| 国产亚洲欧美日韩日本| 99国产精品久久久久久久久久久| 一区二区三区毛片| 日韩一级高清毛片| 国产精品自拍三区| 中文字幕一区日韩精品欧美| 在线免费不卡电影| 美女在线观看视频一区二区| 久久精品视频在线看| 91亚洲永久精品| 日韩成人一区二区三区在线观看| 精品国产1区二区| 91免费国产在线观看| 午夜成人免费电影| 国产欧美日韩不卡| 欧美综合亚洲图片综合区| 美女诱惑一区二区| 中文字幕一区二区三区在线不卡 | 久久精品夜色噜噜亚洲aⅴ| 91视频在线看| 青青草91视频| 国产精品传媒视频| 91精品国产一区二区三区蜜臀| 国产一二三精品| 一区二区三区在线视频播放| 日韩精品中文字幕一区| 97精品久久久午夜一区二区三区| 日韩高清不卡一区| 中文字幕乱码亚洲精品一区| 欧洲生活片亚洲生活在线观看| 免费人成黄页网站在线一区二区| 国产精品视频一二三| 欧美久久久久久久久| 国产成人久久精品77777最新版本| 一区二区三区波多野结衣在线观看| 日韩欧美一级片| 91视频在线观看| 久久国产乱子精品免费女| 樱花影视一区二区| 久久青草国产手机看片福利盒子 | 欧美高清视频不卡网| 国产成人一区在线| 丝袜美腿亚洲一区二区图片| 中文字幕av一区二区三区高| 欧美一区二区视频在线观看2020 | 国产精品自拍在线| 日韩精品免费专区| 亚洲婷婷在线视频| 久久精品一区二区三区不卡| 欧美久久一二区| 色综合天天综合| 国产大陆a不卡| 久久国产视频网| 亚洲一二三四区不卡| 国产精品五月天| 欧美大片一区二区三区| 欧美色精品在线视频| 99精品视频中文字幕| 国精品**一区二区三区在线蜜桃| 亚洲国产另类精品专区| 国产精品护士白丝一区av| 欧美精品一区二区久久婷婷| 欧美情侣在线播放| 91精品办公室少妇高潮对白| 国产激情视频一区二区三区欧美 | 精品久久久久久最新网址| 欧美色综合久久| 色婷婷综合激情| www.欧美日韩国产在线| 国产精品系列在线播放| 久久9热精品视频| 丝袜国产日韩另类美女| 亚洲一区在线电影| 亚洲天堂免费看| 国产精品美女久久久久高潮| 久久色在线视频| 欧美成人官网二区| 911精品国产一区二区在线| 在线观看日韩高清av| 99re6这里只有精品视频在线观看| 国产成人自拍网| 国产精品538一区二区在线| 美女国产一区二区| 久久精品国产精品亚洲红杏 | 日韩高清一区在线| 亚洲成人在线免费| 亚洲成人免费电影| 亚洲国产精品精华液网站| 亚洲一区二区不卡免费| 亚洲综合在线视频| 一区二区三区精品在线| 亚洲猫色日本管| 亚洲天堂精品在线观看| 最新久久zyz资源站| 亚洲日本在线观看| 亚洲免费观看视频| 亚洲综合色网站| 亚洲一区二区偷拍精品| 亚洲一级二级在线| 舔着乳尖日韩一区| 日韩主播视频在线| 日本女人一区二区三区| 蜜桃在线一区二区三区| 裸体歌舞表演一区二区| 国产一区二区三区不卡在线观看| 国产一区二区精品久久99| 国产69精品一区二区亚洲孕妇| 国产不卡视频一区| 成人av网址在线观看| 色综合视频在线观看| 欧美亚洲动漫制服丝袜| 欧美日本视频在线| 日韩丝袜情趣美女图片| 久久久久久一二三区| 国产精品色婷婷| 亚洲精品ww久久久久久p站| 夜夜嗨av一区二区三区网页| 五月天一区二区| 麻豆成人久久精品二区三区小说| 老汉av免费一区二区三区| 国产高清亚洲一区| 91麻豆产精品久久久久久| 欧美日韩在线亚洲一区蜜芽| 日韩免费高清视频| 国产日韩欧美电影| 亚洲精品你懂的| 蜜臂av日日欢夜夜爽一区| 国产成人精品一区二区三区四区| 99久久99久久精品国产片果冻 | 欧美午夜宅男影院| 欧美一区二区三区四区久久| 精品国产1区二区| 亚洲天堂福利av| 日本在线播放一区二区三区| 国内精品不卡在线| 99精品国产视频| 777午夜精品免费视频| 国产日产欧美一区二区视频| 亚洲免费看黄网站| 久久av中文字幕片| 色综合色综合色综合| 日韩午夜三级在线| 国产精品成人免费在线| 亚洲18色成人| 国产成人在线网站| 欧美日韩视频在线观看一区二区三区| 日韩欧美123| 亚洲欧洲一区二区三区| 日本sm残虐另类| 成人不卡免费av| 91精品一区二区三区久久久久久 | 国产一区福利在线| 欧美亚洲一区三区| 日韩欧美在线不卡| 中文字幕制服丝袜成人av| 日韩有码一区二区三区| 国产aⅴ综合色| 正在播放亚洲一区| 亚洲欧洲99久久| 久久激情五月婷婷| 成人免费视频在线观看| 一区二区三区四区中文字幕| 看电影不卡的网站| 欧美性受xxxx| 国产三级三级三级精品8ⅰ区|