Class App
java.lang.Object
org.eclipse.jetty.deploy.App
- Direct Known Subclasses:
OSGiApp
The information about an App that is managed by the
DeploymentManager.-
Constructor Summary
ConstructorsConstructorDescriptionApp(DeploymentManager manager, AppProvider provider, Path path) Create an App with specified Origin ID and archivePath -
Method Summary
Modifier and TypeMethodDescriptionGet ContextHandler for the App.The context pathApprelating to how it is installed on the jetty server side.Get the environment name.getPath()The origin of thisAppas specified by theAppProvidertoString()
-
Constructor Details
-
App
Create an App with specified Origin ID and archivePathAny properties file that exists with the same
FileID.getBasename(Path)as the filename passed will be used to initialize the properties returned bygetProperties().- Parameters:
manager- the deployment managerprovider- the app providerpath- the path to the application directory, war file or XML descriptor- See Also:
-
-
Method Details
-
getDeploymentManager
- Returns:
- The deployment manager
-
getAppProvider
- Returns:
- The AppProvider
-
getProperties
-
getContextHandler
Get ContextHandler for the App. Create it if needed.- Returns:
- the
ContextHandlerto use for the App when fully started. (Portions of which might be ignored when App is not yetAppLifeCycle.DEPLOYEDorAppLifeCycle.STARTED) - Throws:
Exception- if unable to get the context handler
-
getContextPath
-
getEnvironmentName
Get the environment name.- Returns:
- The
Environmentname for the application if set with theDeployable.ENVIRONMENTproperty, else null.
-
getPath
The origin of thisAppas specified by theAppProvider- Returns:
- String representing the origin of this app.
-
toString
-