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 void
applyMetaInfContextXml(Resource rootResource, java.lang.String overrideBundleInstallLocation)
void
configureWebApp()
ContextHandler
createContextHandler()
protected void
createWebApp()
java.lang.String
getBundlePath()
java.lang.String
getContextPath()
The context pathApp
relating to how it is installed on the jetty server side.protected java.lang.String
getPathsToRequiredBundles(java.lang.String requireTldBundles)
protected WebAppContext
newWebApp()
void
setContextPath(java.lang.String contextPath)
void
setWebAppContext(WebAppContext webApp)
void
setWebAppPath(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:App
The context pathApp
relating to how it is installed on the jetty server side.- Overrides:
getContextPath
in 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
-
-