public interface IWebBundleDeployerHelper
| Modifier and Type | Field and Description |
|---|---|
static String |
INTERNAL_SERVICE_PROP_UNKNOWN_CONTEXT_HANDLER_TYPE
when this property is present, the type of context handler registered is
not known in advance.
|
| Modifier and Type | Method and Description |
|---|---|
ContextHandler |
registerContext(org.osgi.framework.Bundle contributor,
String contextFileRelativePath,
String extraClasspath,
String overrideBundleInstallLocation,
String requireTldBundle,
ContextHandler handler)
This type of registration relies on jetty's complete context xml file.
|
WebAppContext |
registerWebapplication(org.osgi.framework.Bundle bundle,
String webappFolderPath,
String contextPath,
String extraClasspath,
String overrideBundleInstallLocation,
String requireTldBundle,
String webXmlPath,
String defaultWebXmlPath,
WebAppContext webAppContext)
Deploy a new web application on the jetty server.
|
void |
unregister(ContextHandler contextHandler)
Stop a ContextHandler and remove it from the collection.
|
static final String INTERNAL_SERVICE_PROP_UNKNOWN_CONTEXT_HANDLER_TYPE
WebAppContext registerWebapplication(org.osgi.framework.Bundle bundle, String webappFolderPath, String contextPath, String extraClasspath, String overrideBundleInstallLocation, String requireTldBundle, String webXmlPath, String defaultWebXmlPath, WebAppContext webAppContext) throws Exception
bundle - The bundlewebappFolderPath - The path to the root of the webapp. Must be a
path relative to bundle; either an absolute path.contextPath - The context path. Must start with "/"extraClasspath - overrideBundleInstallLocation - requireTldBundle - The list of bundles's symbolic names that contain
tld files that are required by this WAB.webXmlPath - defaultWebXmlPath - TODO: parameter descriptionExceptionvoid unregister(ContextHandler contextHandler) throws Exception
contextHandler - ExceptionContextDeployer.undeploy(java.lang.String)ContextHandler registerContext(org.osgi.framework.Bundle contributor, String contextFileRelativePath, String extraClasspath, String overrideBundleInstallLocation, String requireTldBundle, ContextHandler handler) throws Exception
contributor - contextFileRelativePath - extraClasspath - overrideBundleInstallLocation - requireTldBundle - The list of bundles'symbolic name that contain
tld files for this webapp.handler - the context handler passed in the server reference that
will be configured, deployed and started.ExceptionCopyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.