public class App
extends java.lang.Object
DeploymentManager
Constructor | 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,
org.eclipse.jetty.server.handler.ContextHandler context) |
Create an App with specified Origin ID and archivePath
|
Modifier and Type | Method | Description |
---|---|---|
AppProvider |
getAppProvider() |
|
org.eclipse.jetty.server.handler.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() |
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, org.eclipse.jetty.server.handler.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 org.eclipse.jetty.server.handler.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
Copyright © 1995–2018 Webtide. All rights reserved.