View Javadoc

1   // ========================================================================
2   // Copyright (c) 2009 Intalio, Inc.
3   // ------------------------------------------------------------------------
4   // All rights reserved. This program and the accompanying materials
5   // are made available under the terms of the Eclipse Public License v1.0
6   // and Apache License v2.0 which accompanies this distribution.
7   // The Eclipse Public License is available at 
8   // http://www.eclipse.org/legal/epl-v10.html
9   // The Apache License v2.0 is available at
10  // http://www.opensource.org/licenses/apache2.0.php
11  // You may elect to redistribute this code under either of these licenses. 
12  // Contributors:
13  //    Hugues Malphettes - initial API and implementation
14  // ========================================================================
15  package org.eclipse.jetty.osgi.boot;
16  
17  /**
18   * 
19   */
20  public class OSGiWebappConstants
21  {
22      /** url scheme to deploy war file as bundled webapp */
23      public static final String RFC66_WAR_URL_SCHEME = "war";
24  
25      /**
26       * Name of the header that defines the context path for the embedded webapp.
27       */
28      public static final String RFC66_WEB_CONTEXTPATH = "Web-ContextPath";
29  
30      /**
31       * Name of the header that defines the path to the folder where the jsp
32       * files are extracted.
33       */
34      public static final String RFC66_JSP_EXTRACT_LOCATION = "Jsp-ExtractLocation";
35  
36      /** Name of the servlet context attribute that points to the bundle context. */
37      public static final String RFC66_OSGI_BUNDLE_CONTEXT = "osgi-bundlecontext";
38  
39      /** List of relative pathes within the bundle to the jetty context files. */
40      public static final String JETTY_CONTEXT_FILE_PATH = "Jetty-ContextFilePath";
41  
42      /** path within the bundle to the folder that contains the basic resources. */
43      public static final String JETTY_WAR_FOLDER_PATH = "Jetty-WarFolderPath";
44  
45      // OSGi ContextHandler service properties.
46      /** web app context path */
47      public static final String SERVICE_PROP_CONTEXT_PATH = "contextPath";
48  
49      /** Path to the web application base folderr */
50      public static final String SERVICE_PROP_WAR = "war";
51  
52      /** Extra classpath */
53      public static final String SERVICE_PROP_EXTRA_CLASSPATH = "extraClasspath";
54  
55      /** jetty context file path */
56      public static final String SERVICE_PROP_CONTEXT_FILE_PATH = "contextFilePath";
57  
58      /** web.xml file path */
59      public static final String SERVICE_PROP_WEB_XML_PATH = "webXmlFilePath";
60  
61      /** defaultweb.xml file path */
62      public static final String SERVICE_PROP_DEFAULT_WEB_XML_PATH = "defaultWebXmlFilePath";
63  
64      /**
65       * path to the base folder that overrides the computed bundle installation
66       * location if not null useful to install webapps or jetty context files
67       * that are in fact not embedded in a bundle
68       */
69      public static final String SERVICE_PROP_BUNDLE_INSTALL_LOCATION_OVERRIDE = "thisBundleInstall";
70  
71      // sys prop config of jetty:
72      /**
73       * contains a comma separated list of pathes to the etc/jetty-*.xml files
74       * used to configure jetty. By default the value is 'etc/jetty.xml' when the
75       * path is relative the file is resolved relatively to jettyhome.
76       */
77      public static final String SYS_PROP_JETTY_ETC_FILES = "jetty.etc.files";
78  }