⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 constants.java

📁 Java Mail Server JAVA编写的邮件服务器
💻 JAVA
字号:
/**************************************************************** * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.     * *                                                              * * Copyright 2008 Jun Li(SiChuan University, the School of      * * Software Engineering). All rights reserved.                  * *                                                              * * Licensed to the JMS under one  or more contributor license   * * agreements.  See the LICENCE file  distributed with this     * * work for additional information regarding copyright          * * ownership.  The JMS licenses this file  you may not use this * * file except in compliance  with the License.                 * *                                                              * * Unless required by applicable law or agreed to in writing,   * * software distributed under the License is distributed on an  * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       * * KIND, either express or implied.  See the License for the    * * specific language governing permissions and limitations      * * under the License.                                           * ****************************************************************/package org.jpxx.mail;import java.io.File;/** * <p>This class defines some constant variables, such as software name, * version, etc. Since version 0.0.3, it is assigned a new name to Constants. * (The old name is Constant) </p> *  * @author Jun Li * @version $Revision: 0.0.3 $, $Date: 2008/05/14 $ * @since JMS 0.0.1 *  */public final class Constants {    /**     * Forbidden to create an Instance for Constants     */    private Constants() {    }    /**     * This attribute defines the mail server name.     * @since JMS 0.0.1     */    public final static String NAME = "JMS";    /**     * Current version of JMS.     * @since Version 0.0.1     */    public final static String VERSION = "0.0.3";    /**     * When send a mail failed, using this email address to post back     * @since JMS 0.0.1     */    public final static String SYSTEM_REPLY = "MAIL_SEND_ERROR@jpxx.org";    /**     * User Home directory, Where Store user's mail.     * @since JMS 0.0.1     */    public final static String HOME_DIR = NAME + File.separator + "MailStore" +            File.separator + "Domains" + File.separator;    /**     * Store some temp files in TEMP_DIR.     * @since JMS 0.0.1     */    public final static String TEMP_DIR = NAME + File.separator + "Temp" +            File.separator;    /**     * Log4j Config file path.     * @since JMS 0.0.1     */    public final static String LOG4J_FILE_PATH = NAME + File.separator + "Config" +            File.separator + "log4j.xml";    /**     * Log file path. The log will be store in this file.     *      * Log4j need two  File separator.     * @since JMS 0.0.1     */    public final static String LOG_FILE_PATH = NAME + File.separator +            File.separator + "Log" + File.separator + File.separator + "log.txt";    /**     * The file which store the user's information.     * @since JMS 0.0.1     */    public final static String USER_DATA_FILE = "User.xml";    /**     * The Config File Path     * @since JMS 0.0.1     */    public final static String CONFIG_FILE_PATH =            NAME + File.separator + "Config" + File.separator + "SystemConfig.xml";    /**     * This file to config DBCP.     * @since JMS 0.0.3     */    public final static String DBCP_CONFIG_FILE_PATH = NAME + File.separator +            "Config" + File.separator + "DBCP.properties";    /**     * User default mailbox size.      * 1GB.     * @since JMS 0.0.1     */    public final static long DEFAUL_MAILBOX_SIZE = 1024000;    /**     * Smtp server default port     * @since JMS 0.0.1     */    public final static int DEFAULT_SMTP_PORT = 25;    /**     * Pop3 server default port     * @since JMS 0.0.1     */    public final static int DEFAULT_POP3_PORT = 110;    /**     * The client connection Timeout(millisecond).     * @since JMS 0.0.3     */    public final static int DEFAULT_TIMEOUT = 30000;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -