Package org.eclipse.jetty.deploy
Class App
java.lang.Object
org.eclipse.jetty.deploy.App
- Direct Known Subclasses:
AbstractOSGiApp
The information about an App that is managed by the
DeploymentManager
-
Constructor Summary
ConstructorDescriptionApp
(DeploymentManager manager, AppProvider provider, String originId) Create an App with specified Origin ID and archivePathApp
(DeploymentManager manager, AppProvider provider, String originId, ContextHandler context) Create an App with specified Origin ID and archivePath -
Method Summary
Modifier and TypeMethodDescriptionGet ContextHandler for the App.Deprecated.Use getContextPath instead.The context pathApp
relating to how it is installed on the jetty server side.The origin of thisApp
as specified by theAppProvider
toString()
-
Constructor Details
-
App
Create an App with specified Origin ID and archivePath- Parameters:
manager
- the deployment managerprovider
- the app provideroriginId
- the origin ID (The ID that theAppProvider
knows about)- See Also:
-
App
public App(DeploymentManager manager, AppProvider provider, String originId, ContextHandler context) Create an App with specified Origin ID and archivePath- Parameters:
manager
- the deployment managerprovider
- the app provideroriginId
- the origin ID (The ID that theAppProvider
knows about)context
- Some implementations of AppProvider might have to use an already created ContextHandler.- See Also:
-
-
Method Details
-
getDeploymentManager
- Returns:
- The deployment manager
-
getAppProvider
- Returns:
- The AppProvider
-
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
-
getContextId
Deprecated.Use getContextPath instead.The context pathApp
relating to how it is installed on the jetty server side. NOTE that although the method name indicates that this is a unique identifier, it is not, as many contexts may have the same contextPath, yet different virtual hosts.- Returns:
- the context path for the App
-
getContextPath
The context pathApp
relating to how it is installed on the jetty server side.- Returns:
- the contextPath for the App
-
getOriginId
The origin of thisApp
as specified by theAppProvider
- Returns:
- String representing the origin of this app.
-
toString
-