Home » apache-tomcat-6.0.26-src » org.apache » tomcat » shell » [javadoc | source]

    1   /*
    2    * $Header: /u/cvs/Projects/EnhydraOrg/enhydra3x/Enhydra/modules/Tomcat/src/share/org/apache/tomcat/shell/Attic/Constants.java,v 1.2 2000/02/26 02:32:21 shawn Exp $
    3    * $Revision: 1.2 $
    4    * $Date: 2000/02/26 02:32:21 $
    5    *
    6    * ====================================================================
    7    *
    8    * The Apache Software License, Version 1.1
    9    *
   10    * Copyright (c) 1999 The Apache Software Foundation.  All rights 
   11    * reserved.
   12    *
   13    * Redistribution and use in source and binary forms, with or without
   14    * modification, are permitted provided that the following conditions
   15    * are met:
   16    *
   17    * 1. Redistributions of source code must retain the above copyright
   18    *    notice, this list of conditions and the following disclaimer. 
   19    *
   20    * 2. Redistributions in binary form must reproduce the above copyright
   21    *    notice, this list of conditions and the following disclaimer in
   22    *    the documentation and/or other materials provided with the
   23    *    distribution.
   24    *
   25    * 3. The end-user documentation included with the redistribution, if
   26    *    any, must include the following acknowlegement:  
   27    *       "This product includes software developed by the 
   28    *        Apache Software Foundation (http://www.apache.org/)."
   29    *    Alternately, this acknowlegement may appear in the software itself,
   30    *    if and wherever such third-party acknowlegements normally appear.
   31    *
   32    * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   33    *    Foundation" must not be used to endorse or promote products derived
   34    *    from this software without prior written permission. For written 
   35    *    permission, please contact apache@apache.org.
   36    *
   37    * 5. Products derived from this software may not be called "Apache"
   38    *    nor may "Apache" appear in their names without prior written
   39    *    permission of the Apache Group.
   40    *
   41    * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   42    * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   43    * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   44    * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   45    * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   46    * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   47    * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   48    * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   49    * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   50    * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   51    * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   52    * SUCH DAMAGE.
   53    * ====================================================================
   54    *
   55    * This software consists of voluntary contributions made by many
   56    * individuals on behalf of the Apache Software Foundation.  For more
   57    * information on the Apache Software Foundation, please see
   58    * <http://www.apache.org/>.
   59    *
   60    * [Additional notices, if required by prior licensing conditions]
   61    *
   62    */ 
   63   
   64   
   65   package org.apache.tomcat.shell;
   66   
   67   /**
   68    *
   69    * @author James Todd [gonzo@eng.sun.com]
   70    */
   71   
   72   public class Constants {
   73   
   74       public static final String Package = "org.apache.tomcat.shell";
   75   
   76       public static class Server {
   77           public static final String ConfigFile = "server.xml";
   78           public static final String LogFile = "serverlog.txt";
   79       }
   80   
   81       public static class Arg {
   82           public static final String Help = "help";
   83           public static final String Config = "config";
   84           public static final String NoConfig = "noconfig";
   85           public static final String Validate = "validate";
   86           public static final String AdminPort = "adminport";
   87           public static final String ServiceId = "serviceid";
   88           public static final String Port = "port";
   89           public static final String Inet = "inet";
   90           public static final String HostName = "hostname";
   91           public static final String DocumentBase = "docbase";
   92           public static final String WorkDir = "workdir";
   93       }
   94   
   95       public static class XML {
   96           public static final boolean DefaultValidate = true;
   97       }
   98   
   99       public static class Element {
  100           public static final String SERVER = "Server";
  101           public static final String CONTEXT = "Context";
  102           public static final String CONNECTOR = "Connector";
  103           public static final String CONTEXT_MANAGER = "ContextManager";
  104           public static final String PARAMETER = "Parameter";
  105       }
  106   
  107       public static class Attribute {
  108           public static final String Id = "id";
  109           public static final String AdminPort = "adminPort";
  110           public static final String Port = "port";
  111           public static final String HostName = "hostName";
  112           public static final String INet = "inet";
  113           public static final String DocumentBase = "docBase";
  114           public static final String IsWARExpanded = "isWARExpanded";
  115           public static final String IsWARValidated = "isWARValidated";
  116           public static final String WorkDir = "workDir";
  117           public static final String IsWorkDirPersistent =
  118               "isWorkDirPersistent";
  119           public static final String IsInvokerEnabled =
  120               "isInvokerEnabled";
  121           public static final String CONTEXT_ID = "contextId";
  122           public static final String Path = "path";
  123           public static final String DefaultSessionTimeOut =
  124               "defaultSessionTimeOut";
  125           public static final String CLASS_NAME = "className";
  126           public static final String PARAMETER_NAME = "name";
  127           public static final String PARAMETER_VALUE = "value";
  128       }
  129   
  130       public static final String[] WEBSERVER_ATTRIBUTES = {
  131           Attribute.AdminPort
  132       };
  133   
  134       public static final String[] SERVICE_ATTRIBUTES = {
  135           Attribute.Port,
  136           Attribute.HostName,
  137           Attribute.INet,
  138           Attribute.DocumentBase,
  139           Attribute.WorkDir
  140       };
  141   
  142       public static class Default {
  143           public static final int ADMIN_PORT = -1;
  144           public static final String WORK_DIR = "work";
  145           public static final boolean IS_WORK_DIR_PERSISTENT = false;
  146           public static final int SessionTimeOut = 30;
  147           public static final boolean IS_WAR_EXPANDED = true;
  148           public static final boolean IS_WAR_VALIDATED = false;
  149           public static final boolean IS_INVOKER_ENABLED = true;
  150           public static final int CONTEXT_MANAGER_PORT = 8080;
  151       }
  152   
  153       public static class Property {
  154           public static final String AdminPort = "admin.port";
  155       }
  156   
  157       public static class Registry {
  158           public static final String Service = "service";
  159       }
  160   
  161       public static final String[] REQUIRED_CLASSES = {
  162           "sun.tools.javac.Main"
  163       };
  164   
  165       public static class RMI {
  166           public static final int MAX_ADMIN_PORT_ATTEMPTS = 5;
  167           public static final int MIN_ADMIN_PORT = 2048;
  168           public static final int MAX_ADMIN_PORT = MIN_ADMIN_PORT * 4;
  169       }
  170   
  171       public static class Protocol {
  172           public static class WAR {
  173               public static final String PACKAGE =
  174                   "org.apache.tomcat.protocol";
  175               public static final String SYSTEM_PROPERTY =
  176                   "java.protocol.handler.pkgs";
  177           }
  178       }
  179    }

Home » apache-tomcat-6.0.26-src » org.apache » tomcat » shell » [javadoc | source]