Package org.eclipse.jetty.deploy
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
ConstructorDescriptionApp
(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 pathApp
relating to how it is installed on the jetty server side.Get the environment name.getPath()
The origin of thisApp
as specified by theAppProvider
toString()
-
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
ContextHandler
to use for the App when fully started. (Portions of which might be ignored when App is not yetAppLifeCycle.DEPLOYED
orAppLifeCycle.STARTED
) - Throws:
Exception
- if unable to get the context handler
-
getContextPath
The context pathApp
relating to how it is installed on the jetty server side.- Returns:
- the contextPath for the App
-
getEnvironmentName
Get the environment name.- Returns:
- The
Environment
name for the application if set with theDeployable.ENVIRONMENT
property, else null.
-
getPath
The origin of thisApp
as specified by theAppProvider
- Returns:
- String representing the origin of this app.
-
toString
-