C_Jo.java :  » Web-Server » jo » com » tagtraum » jo » Java Open Source

Java Open Source » Web Server » jo 
jo » com » tagtraum » jo » C_Jo.java
/*
License $Id: C_Jo.java,v 1.8 2004/04/16 01:30:03 hendriks73 Exp $

Copyright (c) 2001-2005 tagtraum industries.

LGPL
====

jo! is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

jo! is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

For LGPL see <http://www.fsf.org/copyleft/lesser.txt>


Sun license
===========

This release contains software by Sun Microsystems. Therefore
the following conditions have to be met, too. They apply to the
files

 - lib/mail.jar
 - lib/activation.jar
 - lib/jsse.jar
 - lib/jcert.jar
 - lib/jaxp.jar
 - lib/crimson.jar
 - lib/servlet.jar
 - lib/jnet.jar
 - lib/jaas.jar
 - lib/jaasmod.jar

contained in this release.

a. Licensee may not modify the Java Platform
   Interface (JPI, identified as classes contained within the javax
   package or any subpackages of the javax package), by creating additional
   classes within the JPI or otherwise causing the addition to or modification
   of the classes in the JPI.  In the event that Licensee creates any
   Java-related API and distribute such API to others for applet or
   application development, you must promptly publish broadly, an accurate
   specification for such API for free use by all developers of Java-based
   software.

b. Software is confidential copyrighted information of Sun and
   title to all copies is retained by Sun and/or its licensors.  Licensee
   shall not modify, decompile, disassemble, decrypt, extract, or otherwise
   reverse engineer Software.  Software may not be leased, assigned, or
   sublicensed, in whole or in part.  Software is not designed or intended
   for use in on-line control of aircraft, air traffic, aircraft navigation
   or aircraft communications; or in the design, construction, operation or
   maintenance of any nuclear facility.  Licensee warrants that it will not
   use or redistribute the Software for such purposes.

c. Software is provided "AS IS," without a warranty
   of any kind. ALL EXPRESS OR IMPLIED REPRESENTATIONS AND WARRANTIES,
   INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A
   PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED.

d. This License is effective until terminated.  Licensee may
   terminate this License at any time by destroying all copies of Software.
   This License will terminate immediately without notice from Sun if Licensee
   fails to comply with any provision of this License.  Upon such termination,
   Licensee must destroy all copies of Software.

e. Software, including technical data, is subject to U.S.
   export control laws, including the U.S.  Export Administration Act and its
   associated regulations, and may be subject to export or import regulations
   in other countries.  Licensee agrees to comply strictly with all such
   regulations and acknowledges that it has the responsibility to obtain
   licenses to export, re-export, or import Software.  Software may not be
   downloaded, or otherwise exported or re-exported (i) into, or to a national
   or resident of, Cuba, Iraq, Iran, North Korea, Libya, Sudan, Syria or any
   country to which the U.S. has embargoed goods; or (ii) to anyone on the
   U.S. Treasury Department's list of Specially Designated Nations or the U.S.
   Commerce Department's Table of Denial Orders.


Feedback
========

We encourage your feedback and suggestions and want to use your feedback to
improve the Software. Send all such feedback to:
<feedback@tagtraum.com>

For more information on tagtraum industries and jo!
please see <http://www.tagtraum.com/>.


*/
package com.tagtraum.jo;


/**
 * Constants for jo!
 *
 * @author   <a href="mailto:hs@tagtraum.com">Hendrik Schreiber</a>
 * @version 1.1beta1 $Id: C_Jo.java,v 1.8 2004/04/16 01:30:03 hendriks73 Exp $
 */
public interface C_Jo {

    /**
     * Source-Version
     */
    public static String vcid = "$Id: C_Jo.java,v 1.8 2004/04/16 01:30:03 hendriks73 Exp $";

    /**
     * Name of the environment variable that points at the jo home directory
     */
    public static final String JO_HOME = "JO_HOME";

    // configuration keys

    /**
     * Name of the file that contains the factory configuration: <code>factory.properties</code>
     */
    public static final String C_FilenameFactory = "factory.properties";

    /**
     * Name of the file that contains the hosts configuration: <code>hosts.properties</code>
     */
    public static final String C_FilenameHosts = "hosts.properties";

    // Factory keys

    /**
     * Factory key for <code>I_Listener</code>: <code>Listener</code>
     */
    public static final String C_FactoryKey_Listener = "Listener";

    /**
     * Factory key for {@link I_JoServletModel}: <code>ServletModel</code>
     */
    public static final String C_FactoryKey_ServletModel = "ServletModel";

    /**
     * Factory key for {@link I_JoServletContextPeer}: <code>ServletContextPeer</code>
     */
    public static final String C_FactoryKey_ServletContextPeer = "ServletContextPeer";

    /**
     * Factory key for {@link I_JoRequestDispatcher}: <code>RequestDispatcher</code>
     */
    public static final String C_FactoryKey_RequestDispatcher = "RequestDispatcher";

    /**
     * Factory key for {@link I_JoServletContext}: <code>ServletContext</code>
     */
    public static final String C_FactoryKey_ServletContext = "ServletContext";

    /**
     * Factory key for {@link I_JoServletRequest}: <code>ServletRequest</code>
     */
    public static final String C_FactoryKey_ServletRequest = "ServletRequest";

    /**
     * Factory key for {@link I_JoServletResponse}: <code>ServletResponse</code>
     */
    public static final String C_FactoryKey_ServletResponse = "ServletResponse";

    /**
     * Factory key for {@link I_JoServletConfig}: <code>ServletConfig</code>
     */
    public static final String C_FactoryKey_ServletConfig = "ServletConfig";

    /**
     * Factory key for {@link I_JoServletService}: <code>ServletService</code>
     */
    public static final String C_FactoryKey_ServletService = "ServletService";

    /**
     * Factory key for {@link I_JoHost}: <code>Host</code>
     */
    public static final String C_FactoryKey_Host = "Host";

    /**
     * Factory key for {@link I_JoSessionContext}: <code>SessionContext</code>
     */
    public static final String C_FactoryKey_SessionContext = "SessionContext";

    /**
     * Factory key for {@link I_JoSession}: <code>Session</code>
     */
    public static final String C_FactoryKey_Session = "Session";

    /**
     * Factory key for <code>PeerBuilder</code>: <code>PeerBuilder</code>
     */
    public static final String C_FactoryKey_ServletContextPeerBuilder = "PeerBuilder";

    /**
     * Factory key for <code>HostBuilder</code>: <code>HostBuilder</code>
     */
    public static final String C_FactoryKey_HostBuilder = "HostBuilder";

    /**
     * Factory key for <code>AuthConstraint</code>: <code>AuthConstraint</code>
     */
    public static final String C_FactoryKey_AuthConstraint = "AuthConstraint";

    /**
     * Factory key for <code>SecurityConstraint</code>: <code>SecurityConstraint</code>
     */
    public static final String C_FactoryKey_SecurityConstraint = "SecurityConstraint";

    /**
     * Factory key for <code>WebResourceCollection</code>: <code>WebResourceCollection</code>
     */
    public static final String C_FactoryKey_WebResourceCollection = "WebResourceCollection";

    /**
     * Factory key for <code>LoginConfig</code>: <code>LoginConfig</code>
     */
    public static final String C_FactoryKey_LoginConfig = "LoginConfig";

    /**
     * Factory key for <code>SecurityRole</code>: <code>SecurityRole</code>
     */
    public static final String C_FactoryKey_SecurityRole = "SecurityRole";

    /**
     * Factory key for <code>RoleManager</code>: <code>RoleManager</code>
     */
    public static final String C_FactoryKey_RoleManager = "RoleManager";

    /**
     * Factory key for <code>AccessController</code>: <code>AccessController</code>
     */
    public static final String C_FactoryKey_AccessController = "AccessController";

    /**
     * Factory key for <code>Handler</code>: <code>Handler</code>
     */
    public static final String C_FactoryKey_Handler = "Handler";

    /**
     * Factory key for <code>FileServlet</code>: <code>FileServlet</code>
     */
    public static final String C_FactoryKey_FileServletClass = "FileServlet";

    /**
     * Factory-Key for <code>JspServlet</code>: <code>JspServlet</code>
     */
    public static final String C_FactoryKey_JspServletClass = "JspServlet";

    /**
     * Factory-Key for <code>JspModel</code>: <code>JspModel</code>
     */
    public static final String C_FactoryKey_JspModel = "JspModel";

    /**
     * Factory-Key for <code>AccessLogEvent</code>: <code>AccessLogEvent</code>
     */
    public static final String C_FactoryKey_AccessLogEvent = "AccessLogEvent";

    /**
     * Factory-Key for <code>UserDataConstraint</code>: <code>UserDataConstraint</code>
     */
    public static final String C_FactoryKey_UserDataConstraint = "UserDataConstraint";

    /**
     * Factory-Key for <code>FormLoginConfig</code>: <code>FormLoginConfig</code>
     */
    public static final String C_FactoryKey_FormLoginConfig = "FormLoginConfig";

    /**
     * Factory-Key for <code>SecurityRoleRef</code>: <code>SecurityRoleRef</code>
     */
    public static final String C_FactoryKey_SecurityRoleRef = "SecurityRoleRef";

    /**
     * Factory-Key for <code>FileTransferCompression</code>: <code>FileTransferCompression</code>
     */
    public static final String C_FactoryKey_FileTransferCompression = "FileTransferCompression";

    /**
     * Factory-Key for <code>TLDLocator</code>: <code>TLDLocator</code>
     */
    public static final String C_FactoryKey_TLDLocator = "TLDLocator";

    // Default constants

    /**
     * Default value for MaxInactiveInterval of a session: <code>1800</code>
     */
    public static final int C_DefaultMaxInactiveInterval = 1800;

    /**
     * Default value for SessionTimeout in minutes: <code>30</code>
     */
    public static final int DEFAULT_SESSION_TIMEOUT = 30;

    /**
     * Default value for InvalidationIntervall in ms: <code>30000</code>
     */
    public static final int C_DefaultInvalidationIntervall = 30000;

    /**
     * Default value for SessionIDName: <code>jsessionid</code>
     */
    public static final String C_DefaultSessionIDName = "jsessionid";

    /**
     * Default value for SessionIDNameLength.
     */
    public static final int C_DefaultSessionIDNameLength = C_DefaultSessionIDName.length();

    /**
     * Default value for Session Cookie Name: <code>JSESSIONID</code>
     */
    public static final String C_DefaultSessionCookieName = "JSESSIONID";

    /**
     * Default for max sessions: <code>-1</code>
     */
    public static final int DEFAULT_MAX_SESSIONS = -1;

    /**
     * Default max requests: <code>100</code>
     */
    public static final int C_DefaultMaxRequests = 100;

    /**
     * Default keep alive in sec: <code>15</code>
     */
    public static final int C_DefaultKeepAlive = 15;

    /**
     * Default max cache entry size: <code>100000</code>
     */
    public static final int C_DefaultMaxEntrySize = 100000;

    /**
     * Default cache capacity: <code>-1</code>
     */
    public static final int C_DefaultCacheCapacity = -1;

    /**
     * Default string references: <code>10</code>
     */
    public static final int C_DefaultStrongRefCapacity = 10;

    /**
     * Default fileservlet class: <code>com.tagtraum.jo.servlets.JoFileServlet</code>
     */
    public static final String C_Default_FileServletClass = "com.tagtraum.jo.servlets.JoFileServlet";

    /**
     * Default jspservlet class: <code>com.tagtraum.jo.jsp.JspEngineServlet</code>
     */
    public static final String C_Default_JspServletClass = "com.tagtraum.jo.jsp.JspEngineServlet";

    /**
     * Default AccessLogEventClass: <code>com.tagtraum.jo.CLFLogEvent</code>
     */
    public static final String C_Default_AccessLogEvent = "com.tagtraum.jo.CLFLogEvent";

    /**
     * Default LoadOnStartUp: <code>-1</code>
     */
    public static final int C_Default_LoadOrderPosition = -1;

    /**
     * Default value for DestroyTimeout in ms: <code>30000</code>
     */
    public static final int C_DefaultDestroyTimeout = 30000;

    /**
     * Default value for MaxActiveInstances: <code>10</code>
     */
    public static final int C_DefaultMaxActiveInstances = 10;


    // Other Constants

    // move these to I_JoServletContext/I_JoServletRequest? (rik)

    public static final String C_Context_Attribute_TempDir = "javax.servlet.context.tempdir";

    public static final String C_Request_Attribute_RequestURI = "javax.servlet.include.request_uri";
    public static final String C_Request_Attribute_PathInfo = "javax.servlet.include.path_info";
    public static final String C_Request_Attribute_ContextPath = "javax.servlet.include.context_path";
    public static final String C_Request_Attribute_ServletPath = "javax.servlet.include.servlet_path";
    public static final String C_Request_Attribute_QueryString = "javax.servlet.include.query_string";
    public static final String C_Request_Attribute_X509Certificate = "javax.servlet.request.X509Certificate";

    public static final String C_Request_Attribute_ExceptionType = "javax.servlet.error.exception_type";
    public static final String C_Request_Attribute_ErrorMessage = "javax.servlet.error.message";
    public static final String C_Request_Attribute_ErrorStatusCode = "javax.servlet.error.status_code";

    public static final String C_Request_Attribute_Exception = "javax.servlet.error.exception";
    public static final String C_Request_Attribute_Error_RequestURI = "javax.servlet.error.request_uri";
    public static final String C_Request_Attribute_Error_ServletName = "javax.servlet.error.servlet_name";

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.