public abstract class AbstractWebAppProvider extends AbstractLifeCycle implements AppProvider
Base class for Jetty DeploymentManager Providers that are capable of deploying a webapp, either from a bundle or an OSGi service.
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractWebAppProvider.OSGiApp
OSGiApp
Represents a deployable webapp.
|
AbstractLifeCycle.AbstractLifeCycleListenerLifeCycle.ListenerFAILED, RUNNING, STARTED, STARTING, STOP_ON_FAILURE, STOPPED, STOPPING| Constructor and Description |
|---|
AbstractWebAppProvider(ServerInstanceWrapper wrapper) |
| Modifier and Type | Method and Description |
|---|---|
ContextHandler |
createContextHandler(App app)
Create a ContextHandler for an App
|
String[] |
getConfigurationClasses() |
String |
getDefaultsDescriptor()
Get the defaultsDescriptor.
|
DeploymentManager |
getDeploymentManager() |
static String |
getOriginId(org.osgi.framework.Bundle contributor,
String path) |
ServerInstanceWrapper |
getServerInstanceWrapper() |
String |
getTldBundles() |
boolean |
isExtract() |
boolean |
isParentLoaderPriority()
Get the parentLoaderPriority.
|
void |
setConfigurationClasses(String[] configurations) |
void |
setDefaultsDescriptor(String defaultsDescriptor)
Set the defaultsDescriptor.
|
void |
setDeploymentManager(DeploymentManager deploymentManager)
Set the Deployment Manager
|
void |
setExtract(boolean extract) |
void |
setParentLoaderPriority(boolean parentLoaderPriority)
Set the parentLoaderPriority.
|
void |
setServerInstanceWrapper(ServerInstanceWrapper wrapper) |
void |
setTldBundles(String tldBundles) |
addLifeCycleListener, doStart, doStop, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stoppublic AbstractWebAppProvider(ServerInstanceWrapper wrapper)
public boolean isParentLoaderPriority()
public void setParentLoaderPriority(boolean parentLoaderPriority)
parentLoaderPriority - the parentLoaderPriority to setpublic String getDefaultsDescriptor()
public void setDefaultsDescriptor(String defaultsDescriptor)
defaultsDescriptor - the defaultsDescriptor to setpublic boolean isExtract()
public void setExtract(boolean extract)
public void setTldBundles(String tldBundles)
tldBundles - Comma separated list of bundles that contain tld jars
that should be setup on the jetty instances created here.public String getTldBundles()
public void setConfigurationClasses(String[] configurations)
configurations - The configuration class names.public String[] getConfigurationClasses()
public void setServerInstanceWrapper(ServerInstanceWrapper wrapper)
public ServerInstanceWrapper getServerInstanceWrapper()
public DeploymentManager getDeploymentManager()
public void setDeploymentManager(DeploymentManager deploymentManager)
AppProvidersetDeploymentManager in interface AppProviderdeploymentManager - the deployment managerAppProvider.setDeploymentManager(org.eclipse.jetty.deploy.DeploymentManager)public ContextHandler createContextHandler(App app) throws Exception
AppProvidercreateContextHandler in interface AppProviderapp - The AppIOException - if unable to create contextException - if unable to create contextCopyright © 1995–2017 Webtide. All rights reserved.