public class App
extends java.lang.Object
DeploymentManager
Modifier and Type | Field and Description |
---|---|
private ContextHandler |
_context |
private DeploymentManager |
_manager |
private java.lang.String |
_originId |
private AppProvider |
_provider |
Constructor and Description |
---|
App(DeploymentManager manager,
AppProvider provider,
java.lang.String originId)
Create an App with specified Origin ID and archivePath
|
App(DeploymentManager manager,
AppProvider provider,
java.lang.String originId,
ContextHandler context)
Create an App with specified Origin ID and archivePath
|
Modifier and Type | Method and Description |
---|---|
AppProvider |
getAppProvider() |
ContextHandler |
getContextHandler()
Get ContextHandler for the App.
|
java.lang.String |
getContextId()
Deprecated.
Use getContextPath instead.
|
java.lang.String |
getContextPath()
The context path
App relating to how it is installed on the
jetty server side. |
DeploymentManager |
getDeploymentManager() |
java.lang.String |
getOriginId()
The origin of this
App as specified by the AppProvider |
java.lang.String |
toString() |
private final DeploymentManager _manager
private final AppProvider _provider
private final java.lang.String _originId
private ContextHandler _context
public App(DeploymentManager manager, AppProvider provider, java.lang.String originId)
manager
- the deployment managerprovider
- the app provideroriginId
- the origin ID (The ID that the AppProvider
knows
about)getOriginId()
,
getContextPath()
public App(DeploymentManager manager, AppProvider provider, java.lang.String originId, ContextHandler context)
manager
- the deployment managerprovider
- the app provideroriginId
- the origin ID (The ID that the AppProvider
knows
about)context
- Some implementations of AppProvider might have to use an
already created ContextHandler.getOriginId()
,
getContextPath()
public DeploymentManager getDeploymentManager()
public AppProvider getAppProvider()
public ContextHandler getContextHandler() throws java.lang.Exception
ContextHandler
to use for the App when fully started.
(Portions of which might be ignored when App is not yet
AppLifeCycle.DEPLOYED
or AppLifeCycle.STARTED
)java.lang.Exception
- if unable to get the context handlerpublic java.lang.String getContextId()
App
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.public java.lang.String getContextPath()
App
relating to how it is installed on the
jetty server side.public java.lang.String getOriginId()
App
as specified by the AppProvider
public java.lang.String toString()
toString
in class java.lang.Object