1 // 2 // ======================================================================== 3 // Copyright (c) 1995-2013 Mort Bay Consulting Pty. Ltd. 4 // ------------------------------------------------------------------------ 5 // All rights reserved. This program and the accompanying materials 6 // are made available under the terms of the Eclipse Public License v1.0 7 // and Apache License v2.0 which accompanies this distribution. 8 // 9 // The Eclipse Public License is available at 10 // http://www.eclipse.org/legal/epl-v10.html 11 // 12 // The Apache License v2.0 is available at 13 // http://www.opensource.org/licenses/apache2.0.php 14 // 15 // You may elect to redistribute this code under either of these licenses. 16 // ======================================================================== 17 // 18 19 package org.eclipse.jetty.osgi.boot; 20 21 /** 22 * Name of the properties that configure a jetty Server OSGi service. 23 */ 24 public class OSGiServerConstants 25 { 26 /** 27 * Usual system property used as the hostname for a typical jetty 28 * configuration. 29 */ 30 public static final String JETTY_HOME = "jetty.home"; 31 32 /** 33 * System property to point to a bundle that embeds a jetty configuration 34 * and that jetty configuration should be the default jetty server. First we 35 * look for jetty.home. If we don't find it then we look for this property. 36 */ 37 public static final String JETTY_HOME_BUNDLE = "jetty.home.bundle"; 38 39 /** 40 * Usual system property used as the hostname for a typical jetty 41 * configuration. 42 */ 43 public static final String JETTY_HOST = "jetty.host"; 44 45 /** 46 * Usual system property used as the port for http for a typical jetty 47 * configuration. 48 */ 49 public static final String JETTY_PORT = "jetty.port"; 50 51 /** 52 * Usual system property used as the port for https for a typical jetty 53 * configuration. 54 */ 55 public static final String JETTY_PORT_SSL = "jetty.port.ssl"; 56 57 58 //for managed jetty instances, name of the configuration parameters 59 /** 60 * PID of the jetty servers's ManagedFactory 61 */ 62 public static final String MANAGED_JETTY_SERVER_FACTORY_PID = "org.eclipse.jetty.osgi.boot.managedserverfactory"; 63 64 /** 65 * The associated value of that configuration parameter is the name under which this 66 * instance of the jetty server is tracked. 67 * When a ContextHandler is deployed and it specifies the managedServerName property, it is deployed 68 * on the corresponding jetty managed server or it throws an exception: jetty server not available. 69 */ 70 public static final String MANAGED_JETTY_SERVER_NAME = "managedServerName"; 71 /** 72 * Name of the 'default' jetty server instance. 73 * Usually the first one to be created. 74 */ 75 public static final String MANAGED_JETTY_SERVER_DEFAULT_NAME = "defaultJettyServer"; 76 77 /** 78 * List of URLs to the jetty.xml files that configure th server. 79 */ 80 public static final String MANAGED_JETTY_XML_CONFIG_URLS = "jetty.etc.config.urls"; 81 82 /** 83 * List of URLs to the folders where the legacy J2EE shared libraries are stored aka lib/ext, lib/jsp etc. 84 */ 85 public static final String MANAGED_JETTY_SHARED_LIB_FOLDER_URLS = "managedJettySharedLibFolderUrls"; 86 87 }