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

📄 const.java

📁 Sun公司Dream项目
💻 JAVA
字号:
/*
 * The contents of this file are subject to the terms
 * of the Common Development and Distribution License
 * (the "License").  You may not use this file except
 * in compliance with the License.
 *
 * You can obtain a copy of the license at
 * http://www.opensource.org/licenses/cddl1.php
 * See the License for the specific language governing
 * permissions and limitations under the License.
 *
 * When distributing Covered Code, include this CDDL
 * HEADER in each file and include the License file at
 * http://www.opensource.org/licenses/cddl1.php.  If 
 * applicable, add the following below this CDDL HEADER, 
 * with the fields enclosed by brackets "[]" replaced 
 * with your own identifying information: 
 * Portions Copyright [yyyy]
 * [name of copyright owner]
 */ 

/*
 * $(@)Const.java $Revision: 1.1.1.1 $ $Date: 2006/03/15 13:12:10 $
 * 
 * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
 */
/*
 * Const.java
 *
 * Created on October 10, 2005, 4:10 PM
 *
 * To change this template, choose Tools | Options and locate the template under
 * the Source Creation and Management node. Right-click the template and choose
 * Open. You can then make changes to the template in the Source Editor.
 */

package com.sun.sjc.idtv.vod.server.comm;

public class Const {
    
    /** Creates a new instance of Const */
    public Const() {
    }
    
    /**
     * Defines all constants used in D15N Server
     *
     */
    /**
     * Constant to define the Action of a request.
     */
    public static final String ACTION = "action";
    
    /**
     * Action constant for initial user registration constant.
     */
    public static final String REGISTER1 = "register1";
    
    /**
     * Action constant for submitting user's registration information.
     */
    public static final String REGISTER2 = "register2";
    
    /**
     * Action constant for authenticating user registration.
     */
    public static final String REGISTER3 = "register3";
    
    /**
     * Action constant for initial shop registration.
     */
    public static final String SHOP_REGISTRATION = "shop_registration";
    
    /**
     * Action constant for submitting shop registration information.
     */
    public static final String SHOP_REGISTRATION_SUBMIT =
            "shop_registration_submit";
    
    /**
     * Action constant for initial user login.
     */
    public static final String USER_LOGIN = "user_login";
    
    /**
     * Action constant for validating user login information.
     */
    public static final String USER_LOGIN_SUBMIT = "user_login_submit";
    
    /**
     * Action constant for initial shop login.
     */
    public static final String SHOP_LOGIN = "shop_login";
    
    /**
     * Action constant for validating shop login information.
     */
    public static final String SHOP_LOGIN_SUBMIT = "shop_login_submit";
    
    /**
     * Action constant for storing license information.
     */
    public static final String LICENSE_STORAGE = "store_license";
    
    /**
     * Action constant for requesting refresh in validating user's license.
     */
    public static final String REFRESH = "refresh";
    
    /**
     * Action constant for license check.
     */
    public static final String DRM_LICENSE_GENERATION = "check_license";
    
    /**
     * Action constant for SIM number verification.
     */
    public static final String SIM_VERIFICATION = "check_sim";
    
    /**
     * Action constant for storing coupon information.
     */
    public static final String COUPON_STORAGE = "store_coupon";
    
    /**
     * Action constant for requisiting/claiming coupon.
     */
    public static final String COUPON_REQUISITION = "coupon_requisition";
    
    /**
     * Constant to define the Opera Proxy URL.
     */
    public static final String PROXY_URL = "proxy_url";
    
    /**
     * Constant to define the User ID.
     */
    public static final String USERID = "userid";
    
    /**
     * Constant to define the Phone number.
     */
    public static final String PHONE = "phone";
    
    /**
     * Constant to define the SIM Number.
     */
    public static final String SIM = "simid";
    
    /**
     * Constant to define the registration password.
     */
    public static final String PASSWORD1 = "password1";
    
    /**
     * Constant to define the confirmation registration password.
     */
    public static final String PASSWORD2 = "password2";
    
    /**
     * Constant to define the login password.
     */
    public static final String PASSWORD = "password";
    
    /**
     * Constant to define the Shop ID.
     */
    public static final String SHOPID = "shopid";
    
    /**
     * Constant to define the Shop's name.
     */
    public static final String SHOP_NAME = "shopname";
    
    /**
     * Constant to define the Shop's URL.
     */
    public static final String SHOP_URL = "shopurl";
    
    /**
     * Constant to define the License Server's URL.
     */
    public static final String LICENSE_SERVER_URL = "license_server_url";
    
    /**
     * Constant to define the Shop's success URL.
     */
    public static final String SUCCESSURL = "successurl";
    
    /**
     * Constant to define the Shop's error URL.
     */
    public static final String ERRORURL = "errorurl";
    
    /**
     * Constant to define the Content ID.
     */
    public static final String CONTENTID = "content_id";
    
    /**
     * Constant to define the license type.
     */
    public static final String LICENSETYPE = "licensetype";
    
    /**
     * Constant to define the multiple of <code>fixed-use</code> license type.
     */
    public static final String MULTIPLE = "multiple";
    
    /**
     * Constant to define the start-time of <code>timebound</code> license type.
     */
    public static final String STARTTIME = "starttime";
    
    /**
     * Constant to define the end-time of <code>timebound</code> license type.
     */
    public static final String ENDTIME = "endtime";
    
    /**
     * Fixed-use license type.
     */
    public static final String FIXEDUSE = "fixeduse";
    
    /**
     * Time bound license type.
     */
    public static final String TIMEBOUND = "timebound";
    
    /**
     * Constant to define error.
     */
    public static final String ERROR = "error";
    
    /**
     * Prefix used in generating the user ID. For demo purposes only.
     */
    public static final String USERID_PREFIX = "operaUser";
    
    /**
     * Prefix used in generating the shop ID. For demo purposes only.
     */
    public static final String SHOPID_PREFIX = "operaShop";
    
    /**
     * The date pattern / format used in start-time and end-time.
     */
    public static final String SIMPLE_DATE_PATTERN = "MM/dd/yyyy-kk:mm:ss";
    
    /**
     * Constant to define the JSP file's path.
     */
    public static final String JSP_PATH = "jsp_path";
    
    /**
     * The fixed-use license type constant.
     */
    public static final int FIXED_USE_LICENSE_TYPE = 0;
    
    /**
     * The time-bound license type constant.
     */
    public static final int TIME_BOUND_LICENSE_TYPE = 1;
    
    /**
     * Random key.
     */
    public static final String RANDOM_KEY = "random_key";
    
    /**
     * Constant to define timeout interval.
     */
    public static final String TIMEOUT_INTERVAL = "opera.timeout.interval";
    
    /**
     * Constant to define refresh interval.
     */
    public static final String REFRESH_INTERVAL = "opera.refresh.interval";
    
    /**
     * Constant to define email's domain.
     */
    public static final String MAIL_DOMAIN = "opera.mail.domain";
    
    /**
     * Constant to define email's subject.
     */
    public static final String MAIL_SUBJECT = "opera.mail.subject";
    
    /**
     * Constant to define email's origin (from).
     */
    public static final String MAIL_FROM = "opera.mail.from";
    
    /**
     * Constant to define license server URL.
     */
    public static final String LICENSE_SERVER = "opera.license.server";
    
    /**
     * Constant to define private key (signature) assigned by license server.
     */
    public static final String SIGNATURE = "opera.signature";
    
    /**
     * Constant to define the method of SMS is sent.
     */
    public static final String SMS_VIA = "opera.sendSMS.via";
    
    /**
     * Timeout error message.
     */
    public static final String MESSAGE_TIMEOUT = "timeout";
    
    /**
     * In progress message.
     */
    public static final String MESSAGE_IN_PROGRESS = "in_progress";
    
    /**
     * Verified message.
     */
    public static final String MESSAGE_VERIFIED = "verified";
    
    /**
     * Constant to define a message.
     */
    public static final String MESSAGE = "message";
    
    /**
     * Constant to define an error message.
     */
    public static final String ERROR_MESSAGE = "error_message";
    
    /**
     * Not supported error message.
     */
    public static final String ERROR_NOT_SUPPORTED = "not_supported";
    
    /**
     * Limit exceeded error message.
     */
    public static final String ERROR_LIMIT_EXCEEDED ="limit_exceeded";
    
    /**
     * Expired error message.
     */
    public static final String ERROR_EXPIRED ="expired";
    
    /**
     * Failure error message.
     */
    public static final String ERROR_FAILURE ="failure";
    
    /**
     * Action constant for Content metadata.
     */
    public static final String CONTENT_METADATA = "content_metadata";
    
    /**
     * Constant to define the initial content's metadata.
     */
    public static final String CONTENT_INITIAL_METADATA ="initial_metadata";
    
    /**
     * Constant to define the content's rating.
     */
    public static final String CONTENT_RATING = "rating";
    
    /**
     * Constant to define the content's mime-type.
     */
    public static final String CONTENT_MIME_TYPE = "mimetype";
    
    /**
     * Constant to define the content's DRM type.
     */
    public static final String CONTENT_DRM_TYPE = "drmtype";
    
    /**
     * Constant to define the content's title.
     */
    public static final String CONTENT_TITLE = "title";
    
    /**
     * Constant to define coupon id.
     */
    public static final String COUPONID = "couponid";
    
    /**
     * Constant to define the coupon's value.
     */
    public static final String COUPON_VALUE = "coupon_value";
    
    /**
     * Constant to define the coupon's description.
     */
    public static final String DESCRIPTION = "description";
    
    /**
     * Constant to define the expiration date.
     */
    public static final String EXPIRATION_DATE = "expire_date";
    
    /**
     * Constant to define licenses.
     */
    public static final String LICENSES = "licenses";
    
    /**
     * Constant to define coupons.
     */
    public static final String COUPONS = "coupons";
    
    /**
     * Constant to define shops.
     */
    public static final String SHOPS = "shops";
    
    /**
     * Success status constant.
     */
    public static final String SUCCESS = "success";
    
    /**
     * Constant to define the status.
     */
    public static final String STATUS = "status";
    
    /**
     * Save mode constant.
     */
    public static final String SAVE = "save";
    
    /**
     * Update mode constant.
     */
    public static final String UPDATE = "update";
    
    /**
     * Constant to define the DMD-UID
     */
    public static final String DMDUID = "dmduid";
    
    /**
     * Constant to define if a repetitive request is made.
     */
    public static final String RECALL = "recall";
    
    /**
     * Name of the request parameter that indicates if the servlet
     * should block on a DRM license request, or periodically
     * send refresh pages. If the value of this parameter is "true"
     * the servlet will return only after all validation has been
     * done, or the request is timed out.
     *
     */
    public static final String BLOCK_ON_LICENSE_REQUEST_PARAM = "block_on_license_request";
    
    /**
     * Constant to define signature / private key.
     */
    public static final String LICENSE_SIGNATURE = "signature";
    
    /**
     * JDBC driver class name.
     */
    public static final String DATABASE_DRIVER = "opera.database.driver";
    
    /**
     * JDBC connection URL for connecting to the database, usually in the form of jdbc:subprotocol:subname
     */
    public static final String DATABASE_URL = "opera.database.url";
    
    /**
     * Database username
     */
    public static final String DATABASE_USERNAME = "opera.database.username";
    
    /**
     * Password used in pair with username to access database.
     */
    public static final String DATABASE_PASSWORD = "opera.database.password";
    
    /**
     * User full name
     */
    public static final String USERNAME = "username";
    
    /**
     * User email
     */
    public static final String EMAIL = "email";
    
    public static final String DRM_TYPES = "opera.drm.types";
    
    public static final String ERROR_AUTHENTICATION_FAILED = "Password invalid Authentication failed";
    
    
}

⌨️ 快捷键说明

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