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

📄 constants.java

📁 Sample for struts mailreader
💻 JAVA
字号:
/* * $Id: Constants.java 360442 2005-12-31 20:10:04Z husted $ * * Copyright 1999-2004 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * *      http://www.apache.org/licenses/LICENSE-2.0 * * 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.apache.struts.apps.mailreader;/** * <p> * Manifest constants for the MailReader application. * </p> * * @version $Rev: 360442 $ $Date: 2005-12-31 13:10:04 -0700 (Sat, 31 Dec 2005) $ */public final class Constants {    // --- Tokens ----    /**     * <p>     * The token representing a "create" task.     * </p>     */    public static final String CREATE = "Create";    /**     * <p>     * The application scope attribute under which our user database     * is stored.     * </p>     */    public static final String DATABASE_KEY = "database";    /**     * <p>     * The token representing a "edit" task.     * </p>     */    public static final String DELETE = "Delete";    /**     * <p>     * The token representing a "edit" task.     * </p>     */    public static final String EDIT = "Edit";    /**     * <p>     * The request attributes key under the WelcomeAction stores an ArrayList     * of error messages, if required resources are missing.     * </p>     */    public static final String ERROR_KEY = "ERROR";    /**     * <p>     * The token representing a "failure" result for this application.     * </p>     */    public static final String FAILURE = "Failure";    /**     * <p>     * The token representing a "logon" result for this application.     * </p>     */    public static final String LOGON = "Logon";    /**     * <p>     * The package name for this application.     * </p>     */    public static final String PACKAGE = "org.apache.struts.apps.mailreader";    /**     * <p>     * The token representing a "save" task.     * </p>     */    public static final String SAVE = "Save";    /**     * <p>     * The session scope attribute under which the Subscription object     * currently selected by our logged-in User is stored.     * </p>     */    public static final String SUBSCRIPTION_KEY = "subscription";    /**     * <p>     * The token representing a "success" result for this application.     * </p>     */    public static final String SUCCESS = "Success";    /**     * <p>     * The session scope attribute under which the User object     * for the currently logged in user is stored.     * </p>     */    public static final String USER_KEY = "user";    // ---- Error Messages ----    /**     * <p>     * A static message in case database resource is not loaded.     * <p>     */    public static final String ERROR_DATABASE_NOT_LOADED =            "ERROR:  User database not loaded -- check servlet container logs for error messages.";    /**     * <p>     * A static message in case message resource is not loaded.     * </p>     */    public static final String ERROR_MESSAGES_NOT_LOADED =            "ERROR:  Message resources not loaded -- check servlet container logs for error messages.";    // ---- Error Tokens ----    /**     * <p>     * The resource key for an error with the transactional token.     * </p>     */    public static final String MSG_TRANSACTION_TOKEN = "error.transaction.token";    // ---- Log Messages ----    /**     * <p>     * The message to log when cancelling a transaction.     * </p>     */    public static final String LOG_CANCEL = " Transaction cancelled: ";    /**     * <p>     * The message to log when forwarding to a result.     * </p>     */    public static final String LOG_RESULT = " Forwarding to result: ";    /**     * <p>     * The message to log when forwarding to a 'failure' result.     * <p>     */    public static final String LOG_FAILURE = LOG_RESULT + FAILURE;    /**     * <p>     * The message to log when forwarding to a 'logon' result.     * </p>     */    public static final String LOG_LOGON = LOG_RESULT + LOGON;    /**     * <p>     * The message to log when populating a form.     * </p>     */    public static final String LOG_POPULATE_FORM = " Populating form from: ";    /**     * <p>     * The message to log when populating a subscription.     * </p>     */    public static final String LOG_POPULATE_SUBSCRIPTION = " Populating subscription: ";    /**     * <p>     * The message to log when populating a user.     * </p>     */    public static final String LOG_POPULATE_USER = " Populating user: ";    /**     * <p>     * The message to log when forwarding to a 'success' result.     * </p>     */    public static final String LOG_PROCESSING = " Processing: ";    /**     * <p>     * The message to log when forwarding to a 'success' result.     * </p>     */    public static final String LOG_SUCCESS = LOG_RESULT + SUCCESS;    /**     * <p>     * The message to log when setting a transactional token.     * </p>     */    public static final String LOG_TOKEN = " Setting transactional control token";    /**     * <p>     * The message to log when checking a transactional token.     * </p>     */    public static final String LOG_TOKEN_CHECK = " Checking transactional control token";}

⌨️ 快捷键说明

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