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

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

?? session.java

?? java Email you can use it to send email to others
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
/* * 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. *//* * @(#)Session.java	1.76 07/05/04 */package javax.mail;import java.lang.reflect.*;import java.io.*;import java.net.*;import java.security.*;import java.util.Enumeration;import java.util.Hashtable;import java.util.Properties;import java.util.StringTokenizer;import java.util.Vector;import javax.activation.*;import com.sun.mail.util.LineInputStream;/** * The Session class represents a mail session and is not subclassed. * It collects together properties and defaults used by the mail API's. * A single default session can be shared by multiple applications on the * desktop.  Unshared sessions can also be created. <p> * * The Session class provides access to the protocol providers that * implement the <code>Store</code>, <code>Transport</code>, and related * classes.  The protocol providers are configured using the following files: * <ul> *  <li> <code>javamail.providers</code> and * 	<code>javamail.default.providers</code> </li> *  <li> <code>javamail.address.map</code> and * 	<code>javamail.default.address.map</code> </li> * </ul> * <p> * Each <code>javamail.</code><i>X</i> resource file is searched for using * three methods in the following order: * <ol> *  <li> <code>java.home/lib/javamail.</code><i>X</i> </li> *  <li> <code>META-INF/javamail.</code><i>X</i> </li> *  <li> <code>META-INF/javamail.default.</code><i>X</i> </li> * </ol> * <p> * The first method allows the user to include their own version of the * resource file by placing it in the <code>lib</code> directory where the * <code>java.home</code> property points.  The second method allows an * application that uses the JavaMail APIs to include their own resource * files in their application's or jar file's <code>META-INF</code> * directory.  The <code>javamail.default.</code><i>X</i> default files * are part of the JavaMail <code>mail.jar</code> file. <p> * * File location depends upon how the <code>ClassLoader</code> method * <code>getResource</code> is implemented.  Usually, the * <code>getResource</code> method searches through CLASSPATH until it * finds the requested file and then stops.  JDK 1.1 has a limitation that * the number of files of each name that will be found in the CLASSPATH is * limited to one.  However, this only affects method two, above; method * one is loaded from a specific location (if allowed by the * SecurityManager) and method three uses a different name to ensure that * the default resource file is always loaded successfully.  J2SE 1.2 and * later are not limited to one file of a given name. <p> * * The ordering of entries in the resource files matters.  If multiple * entries exist, the first entries take precedence over the later * entries.  For example, the first IMAP provider found will be set as the * default IMAP implementation until explicitly changed by the * application.  The user- or system-supplied resource files augment, they * do not override, the default files included with the JavaMail APIs. * This means that all entries in all files loaded will be available. <p> * * <b><code>javamail.providers</code></b> and * <b><code>javamail.default.providers</code></b><p> * * These resource files specify the stores and transports that are * available on the system, allowing an application to "discover" what * store and transport implementations are available.  The protocol * implementations are listed one per line.  The file format defines four * attributes that describe a protocol implementation.  Each attribute is * an "="-separated name-value pair with the name in lowercase. Each * name-value pair is semi-colon (";") separated.  The following names * are defined. <p> * * <table border=1> * <caption> * Attribute Names in Providers Files * </caption> * <tr> * <th>Name</th><th>Description</th> * </tr> * <tr> * <td>protocol</td> * <td>Name assigned to protocol. * For example, <code>smtp</code> for Transport.</td> * </tr> * <tr> * <td>type</td> * <td>Valid entries are <code>store</code> and <code>transport</code>.</td> * </tr> * <tr> * <td>class</td> * <td>Class name that implements this protocol.</td> * </tr> * <tr> * <td>vendor</td> * <td>Optional string identifying the vendor.</td> * </tr> * <tr> * <td>version</td> * <td>Optional string identifying the version.</td> * </tr> * </table><p> * * Here's an example of <code>META-INF/javamail.default.providers</code> * file contents: * <pre> * protocol=imap; type=store; class=com.sun.mail.imap.IMAPStore; vendor=Sun Microsystems, Inc.; * protocol=smtp; type=transport; class=com.sun.mail.smtp.SMTPTransport; vendor=Sun Microsystems, Inc.; * </pre><p> * * <b><code>javamail.address.map</code></b> and * <b><code>javamail.default.address.map</code></b><p> * * These resource files map transport address types to the transport * protocol.  The <code>getType</code> method of * </code>javax.mail.Address</code> returns the address type.  The * <code>javamail.address.map</code> file maps the transport type to the * protocol.  The file format is a series of name-value pairs.  Each key * name should correspond to an address type that is currently installed * on the system; there should also be an entry for each * <code>javax.mail.Address</code> implementation that is present if it is * to be used.  For example, the * <code>javax.mail.internet.InternetAddress</code> method * <code>getType</code> returns "rfc822". Each referenced protocol should * be installed on the system.  For the case of <code>news</code>, below, * the client should install a Transport provider supporting the nntp * protocol. <p> * * Here are the typical contents of a <code>javamail.address.map</code> file: * <pre> * rfc822=smtp * news=nntp * </pre> * * @version 1.76, 07/05/04 * @author John Mani * @author Bill Shannon * @author Max Spivak */public final class Session {    private final Properties props;    private final Authenticator authenticator;    private final Hashtable authTable = new Hashtable();    private boolean debug = false;    private PrintStream out;			// debug output stream    private final Vector providers = new Vector();    private final Hashtable providersByProtocol = new Hashtable();    private final Hashtable providersByClassName = new Hashtable();    private final Properties addressMap = new Properties();						// maps type to protocol    // The default session.    private static Session defaultSession = null;    // Constructor is not public    private Session(Properties props, Authenticator authenticator) {	this.props = props;	this.authenticator = authenticator;	if (Boolean.valueOf(props.getProperty("mail.debug")).booleanValue())	    debug = true;	if (debug)	    pr("DEBUG: JavaMail version " + Version.version);	// get the Class associated with the Authenticator	Class cl;	if (authenticator != null)	    cl = authenticator.getClass();	else	    cl = this.getClass();	// load the resources	loadProviders(cl);	loadAddressMap(cl);    }    /**     * Get a new Session object.     *     * @param	props	Properties object that hold relevant properties.<br>     *                  It is expected that the client supplies values     *                  for the properties listed in Appendix A of the     *                  JavaMail spec (particularly  mail.store.protocol,      *                  mail.transport.protocol, mail.host, mail.user,      *                  and mail.from) as the defaults are unlikely to      *                  work in all cases.     * @param	authenticator Authenticator object used to call back to     *			the application when a user name and password is     *			needed.     * @return		a new Session object     * @see	javax.mail.Authenticator     */    public static Session getInstance(Properties props,					Authenticator authenticator) {	return new Session(props, authenticator);    }    /**     * Get a new Session object.     *     * @param	props	Properties object that hold relevant properties.<br>     *                  It is expected that the client supplies values     *                  for the properties listed in Appendix A of the     *                  JavaMail spec (particularly  mail.store.protocol,      *                  mail.transport.protocol, mail.host, mail.user,      *                  and mail.from) as the defaults are unlikely to      *                  work in all cases.     * @return		a new Session object     * @since		JavaMail 1.2     */    public static Session getInstance(Properties props) {	return new Session(props, null);    }    /**     * Get the default Session object. If a default has not yet been     * setup, a new Session object is created and installed as the      * default. <p>     *     * Since the default session is potentially available to all     * code executing in the same Java virtual machine, and the session     * can contain security sensitive information such as user names     * and passwords, access to the default session is restricted.     * The Authenticator object, which must be created by the caller,     * is used indirectly to check access permission.  The Authenticator     * object passed in when the session is created is compared with     * the Authenticator object passed in to subsequent requests to     * get the default session.  If both objects are the same, or are     * from the same ClassLoader, the request is allowed.  Otherwise,     * it is denied.  <p>     *     * Note that if the Authenticator object used to create the session     * is null, anyone can get the default session by passing in null.  <p>     *     * Note also that the Properties object is used only the first time     * this method is called, when a new Session object is created.     * Subsequent calls return the Session object that was created by the     * first call, and ignore the passed Properties object.  Use the     * <code>getInstance</code> method to get a new Session object every     * time the method is called. <p>     *     * In JDK 1.2, additional security Permission objects may be used to     * control access to the default session.     *     * @param	props	Properties object. Used only if a new Session     *			object is created.<br>     *                  It is expected that the client supplies values     *                  for the properties listed in Appendix A of the     *                  JavaMail spec (particularly  mail.store.protocol,      *                  mail.transport.protocol, mail.host, mail.user,      *                  and mail.from) as the defaults are unlikely to      *                  work in all cases.     * @param	authenticator Authenticator object.  Used only if a     *			new Session object is created.  Otherwise,      *			it must match the Authenticator used to create     *			the Session.     * @return		the default Session object     */    public static synchronized Session getDefaultInstance(Properties props,					Authenticator authenticator) {	if (defaultSession == null)	    defaultSession = new Session(props, authenticator);	else {	    // have to check whether caller is allowed to see default session	    if (defaultSession.authenticator == authenticator)		;	// either same object or both null, either way OK	    else if (defaultSession.authenticator != null &&		    authenticator != null &&		    defaultSession.authenticator.getClass().getClassLoader() ==			authenticator.getClass().getClassLoader())		;	// both objects came from the same class loader, OK	    else		// anything else is not allowed		throw new SecurityException("Access to default session denied");	}	return defaultSession;    }    /**     * Get the default Session object. If a default has not yet been     * setup, a new Session object is created and installed as the      * default. <p>     *     * Note that a default session created with no Authenticator is     * available to all code executing in the same Java virtual     * machine, and the session can contain security sensitive     * information such as user names and passwords.     *     * @param	props	Properties object. Used only if a new Session     *			object is created.<br>     *                  It is expected that the client supplies values     *                  for the properties listed in Appendix A of the     *                  JavaMail spec (particularly  mail.store.protocol,      *                  mail.transport.protocol, mail.host, mail.user,      *                  and mail.from) as the defaults are unlikely to      *                  work in all cases.     * @return		the default Session object     * @since		JavaMail 1.2     */    public static Session getDefaultInstance(Properties props) {        return getDefaultInstance(props, null);    }    /**     * Set the debug setting for this Session.     * <p>     * Since the debug setting can be turned on only after the Session     * has been created, to turn on debugging in the Session     * constructor, set the property <code>mail.debug</code> in the     * Properties object passed in to the constructor to true.  The     * value of the <code>mail.debug</code> property is used to     * initialize the per-Session debugging flag.  Subsequent calls to     * the <code>setDebug</code> method manipulate the per-Session     * debugging flag and have no affect on the <code>mail.debug</code>     * property.     *     * @param debug	Debug setting     */    public synchronized void setDebug(boolean debug) {	this.debug = debug;	if (debug)	    pr("DEBUG: setDebug: JavaMail version " + Version.version);    }    /**     * Get the debug setting for this Session.     *     * @return current debug setting     */    public synchronized boolean getDebug() {	return debug;    }    /**     * Set the stream to be used for debugging output for this session.     * If <code>out</code> is null, <code>System.out</code> will be used.     * Note that debugging output that occurs before any session is created,     * as a result of setting the <code>mail.debug</code> system property,     * will always be sent to <code>System.out</code>.     *     * @param	out	the PrintStream to use for debugging output     * @since		JavaMail 1.3     */    public synchronized void setDebugOut(PrintStream out) {	this.out = out;    }    /**     * Returns the stream to be used for debugging output.  If no stream     * has been set, <code>System.out</code> is returned.     *     * @return		the PrintStream to use for debugging output     * @since		JavaMail 1.3     */    public synchronized PrintStream getDebugOut() {	if (out == null)	    return System.out;	else	    return out;    }    /**     * This method returns an array of all the implementations installed      * via the javamail.[default.]providers files that can     * be loaded using the ClassLoader available to this application.     *     * @return Array of configured providers     */    public synchronized Provider[] getProviders() {	Provider[] _providers = new Provider[providers.size()];	providers.copyInto(_providers);	return _providers;    }    /**     * Returns the default Provider for the protocol     * specified. Checks mail.&lt;protocol&gt;.class property     * first and if it exists, returns the Provider     * associated with this implementation. If it doesn't exist, 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
蜜桃精品视频在线| 蜜桃视频在线观看一区| 欧美嫩在线观看| 成人一级片在线观看| 亚洲不卡一区二区三区| 久久久精品影视| 欧美福利电影网| 成人教育av在线| 久久国产婷婷国产香蕉| 亚洲欧美怡红院| 日韩精品专区在线影院观看| 一本色道**综合亚洲精品蜜桃冫| 日本不卡免费在线视频| 久久女同精品一区二区| 欧美人妇做爰xxxⅹ性高电影| 岛国一区二区三区| 久久av中文字幕片| 夜夜爽夜夜爽精品视频| 国产欧美精品在线观看| 日韩视频123| 91精品办公室少妇高潮对白| 婷婷中文字幕综合| 一区二区三区在线播放| 国产三级久久久| 久久亚洲综合av| 91精品国产综合久久久蜜臀图片| 色婷婷激情综合| 91在线观看视频| 国产成人自拍网| 国产不卡高清在线观看视频| 久久99精品久久久| 同产精品九九九| 午夜视频在线观看一区| 亚洲精品国产一区二区三区四区在线 | 久久久精品影视| 精品国产麻豆免费人成网站| 欧美写真视频网站| 国内偷窥港台综合视频在线播放| 久久www免费人成看片高清| 亚洲综合成人网| 亚洲一区二区三区视频在线播放 | 宅男在线国产精品| 在线国产电影不卡| 欧美日韩在线播放三区四区| 一本色道久久综合亚洲精品按摩 | 欧美一级淫片007| 91精品在线麻豆| 欧美一级片在线看| 日韩一区二区在线看| 7777精品伊人久久久大香线蕉超级流畅 | 国产欧美综合在线| 日韩欧美亚洲国产另类| 亚洲精品一线二线三线无人区| 欧美久久久久久蜜桃| 色综合久久久久| 在线一区二区视频| 欧美在线观看一区| 欧美精品日韩综合在线| 欧美群妇大交群中文字幕| 色呦呦一区二区三区| 欧美日韩另类国产亚洲欧美一级| 欧美日韩你懂的| 精品久久国产字幕高潮| 2023国产精华国产精品| 国产视频一区不卡| 亚洲欧美另类在线| 亚洲精品乱码久久久久久久久| 亚洲天堂2016| 亚洲6080在线| 美女视频一区二区| 成人av在线播放网址| 色哟哟国产精品免费观看| 日本一区二区视频在线观看| 久久精品一区蜜桃臀影院| 久久久久久久久久久久电影| 久久女同精品一区二区| 中文字幕亚洲一区二区av在线| ㊣最新国产の精品bt伙计久久| 中文字幕免费一区| 亚洲无人区一区| 精品国产一区a| 国产精品久久久久影院色老大| 亚洲欧美偷拍卡通变态| 免费人成在线不卡| 岛国一区二区三区| 欧美日韩在线观看一区二区| 欧美激情在线一区二区| 亚洲精品日日夜夜| 韩国精品久久久| 色婷婷精品久久二区二区蜜臀av| 91极品视觉盛宴| 国产欧美视频一区二区三区| 亚洲精品国产精华液| 国产麻豆精品95视频| 在线观看日韩一区| 欧美日韩国产综合视频在线观看| 2023国产精华国产精品| 一区二区三区在线免费播放| 国产在线日韩欧美| 色嗨嗨av一区二区三区| 日韩一区国产二区欧美三区| 国产精品白丝在线| 奇米一区二区三区av| 色94色欧美sute亚洲13| 久久婷婷综合激情| 日韩激情av在线| 91美女精品福利| 久久免费美女视频| 久久精品国产亚洲一区二区三区| 91麻豆国产福利在线观看| 国产亚洲欧洲997久久综合 | 国产精品女主播在线观看| 日本在线播放一区二区三区| 成人av在线资源| 欧美一区二区三区四区高清 | 久久精品人人做人人综合 | 国产不卡视频一区二区三区| 欧美日韩高清不卡| 久久日韩精品一区二区五区| 日本女优在线视频一区二区| 一本久久a久久精品亚洲| 国产精品三级av| 精品一区二区三区免费视频| 色哟哟精品一区| 亚洲精品视频一区| 丁香婷婷深情五月亚洲| 欧美激情在线一区二区三区| 免费久久99精品国产| 色综合久久88色综合天天免费| 国产亚洲欧美在线| 久久成人久久爱| 精品国免费一区二区三区| 亚洲成人精品一区二区| 粗大黑人巨茎大战欧美成人| 久久久久久久一区| 美国av一区二区| 欧美一级二级三级蜜桃| 视频一区欧美精品| 欧美性三三影院| 国产精品亲子伦对白| 97精品视频在线观看自产线路二| 久久品道一品道久久精品| 国产盗摄视频一区二区三区| 日韩免费看的电影| 亚洲高清中文字幕| 欧美午夜不卡视频| 亚洲黄色免费网站| 欧美日本在线一区| 天使萌一区二区三区免费观看| 91精品国产综合久久久久久| 午夜精品久久一牛影视| 91国产丝袜在线播放| 亚洲蜜桃精久久久久久久| 91电影在线观看| 青青草97国产精品免费观看无弹窗版| 欧美日韩一区二区在线观看| 蜜臀va亚洲va欧美va天堂 | 日本高清无吗v一区| 亚洲综合色成人| 9191久久久久久久久久久| 午夜久久电影网| 91国产免费看| 经典三级视频一区| 国产夜色精品一区二区av| 色噜噜狠狠成人中文综合| 亚洲一区二区三区中文字幕| 欧美一区二区精品| 国产乱一区二区| 久久亚洲二区三区| 色婷婷av一区二区三区大白胸| 亚洲综合图片区| 久久久噜噜噜久噜久久综合| 成人99免费视频| 日韩福利视频导航| 久久嫩草精品久久久久| 国产69精品久久99不卡| 亚洲一区日韩精品中文字幕| 欧美欧美午夜aⅴ在线观看| 国产成人精品aa毛片| 日韩一区在线看| 日韩欧美国产电影| 风流少妇一区二区| 亚洲美女一区二区三区| 欧美sm美女调教| 99麻豆久久久国产精品免费优播| 日韩精品一二三四| 日本一区二区三区高清不卡| 欧美日韩国产另类不卡| 国产精品99久久久久久久vr | 日韩在线一区二区三区| 久久久亚洲精品一区二区三区| 色婷婷综合激情| 韩国精品免费视频| 亚洲一区二区在线免费看| 精品日产卡一卡二卡麻豆| 激情久久久久久久久久久久久久久久| 一区二区三区不卡视频在线观看 | 日韩欧美成人午夜| 色综合天天综合色综合av| 美洲天堂一区二卡三卡四卡视频 |