Package org.eclipse.jetty.osgi.boot
Class AbstractWebAppProvider.OSGiApp
- java.lang.Object
-
- org.eclipse.jetty.deploy.App
-
- org.eclipse.jetty.osgi.boot.AbstractOSGiApp
-
- org.eclipse.jetty.osgi.boot.AbstractWebAppProvider.OSGiApp
-
- Direct Known Subclasses:
ServiceWebAppProvider.ServiceApp
- Enclosing class:
- AbstractWebAppProvider
public class AbstractWebAppProvider.OSGiApp extends AbstractOSGiApp
OSGiApp Represents a deployable webapp.
-
-
Field Summary
-
Fields inherited from class org.eclipse.jetty.osgi.boot.AbstractOSGiApp
_bundle, _properties, _registration
-
-
Constructor Summary
Constructors Constructor Description OSGiApp(DeploymentManager manager, AppProvider provider, org.osgi.framework.Bundle bundle, java.lang.String originId)OSGiApp(DeploymentManager manager, AppProvider provider, org.osgi.framework.Bundle bundle, java.util.Dictionary properties, java.lang.String originId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidapplyMetaInfContextXml(Resource rootResource, java.lang.String overrideBundleInstallLocation)voidconfigureWebApp()ContextHandlercreateContextHandler()protected voidcreateWebApp()java.lang.StringgetBundlePath()java.lang.StringgetContextPath()The context pathApprelating to how it is installed on the jetty server side.protected java.lang.StringgetPathsToRequiredBundles(java.lang.String requireTldBundles)protected WebAppContextnewWebApp()voidsetContextPath(java.lang.String contextPath)voidsetWebAppContext(WebAppContext webApp)voidsetWebAppPath(java.lang.String path)-
Methods inherited from class org.eclipse.jetty.osgi.boot.AbstractOSGiApp
deregisterAsOSGiService, findFile, getBundle, getBundleSymbolicName, getBundleVersionAsString, getFileAsResource, getFileAsResource, getRegistration, registerAsOSGiService, setRegistration
-
Methods inherited from class org.eclipse.jetty.deploy.App
getAppProvider, getContextHandler, getContextId, getDeploymentManager, getOriginId, toString
-
-
-
-
Constructor Detail
-
OSGiApp
public OSGiApp(DeploymentManager manager, AppProvider provider, org.osgi.framework.Bundle bundle, java.lang.String originId)
-
OSGiApp
public OSGiApp(DeploymentManager manager, AppProvider provider, org.osgi.framework.Bundle bundle, java.util.Dictionary properties, java.lang.String originId)
-
-
Method Detail
-
setWebAppContext
public void setWebAppContext(WebAppContext webApp)
-
getContextPath
public java.lang.String getContextPath()
Description copied from class:AppThe context pathApprelating to how it is installed on the jetty server side.- Overrides:
getContextPathin classApp- Returns:
- the contextPath for the App
-
setContextPath
public void setContextPath(java.lang.String contextPath)
-
getBundlePath
public java.lang.String getBundlePath()
-
setWebAppPath
public void setWebAppPath(java.lang.String path)
-
createContextHandler
public ContextHandler createContextHandler() throws java.lang.Exception
- Throws:
java.lang.Exception
-
createWebApp
protected void createWebApp() throws java.lang.Exception- Throws:
java.lang.Exception
-
newWebApp
protected WebAppContext newWebApp()
-
configureWebApp
public void configureWebApp() throws java.lang.Exception- Throws:
java.lang.Exception
-
getPathsToRequiredBundles
protected java.lang.String getPathsToRequiredBundles(java.lang.String requireTldBundles) throws java.lang.Exception- Throws:
java.lang.Exception
-
applyMetaInfContextXml
protected void applyMetaInfContextXml(Resource rootResource, java.lang.String overrideBundleInstallLocation) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-