Package org.eclipse.jetty.deploy
Class App
- java.lang.Object
-
- org.eclipse.jetty.deploy.App
-
public class App extends java.lang.ObjectThe information about an App that is managed by theDeploymentManager
-
-
Field Summary
Fields Modifier and Type Field Description private ContextHandler_contextprivate DeploymentManager_managerprivate java.lang.String_originIdprivate AppProvider_provider
-
Constructor Summary
Constructors Constructor Description App(DeploymentManager manager, AppProvider provider, java.lang.String originId)Create an App with specified Origin ID and archivePathApp(DeploymentManager manager, AppProvider provider, java.lang.String originId, ContextHandler context)Create an App with specified Origin ID and archivePath
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AppProvidergetAppProvider()ContextHandlergetContextHandler()Get ContextHandler for the App.java.lang.StringgetContextId()Deprecated.Use getContextPath instead.java.lang.StringgetContextPath()The context pathApprelating to how it is installed on the jetty server side.DeploymentManagergetDeploymentManager()java.lang.StringgetOriginId()The origin of thisAppas specified by theAppProviderjava.lang.StringtoString()
-
-
-
Field Detail
-
_manager
private final DeploymentManager _manager
-
_provider
private final AppProvider _provider
-
_originId
private final java.lang.String _originId
-
_context
private ContextHandler _context
-
-
Constructor Detail
-
App
public App(DeploymentManager manager, AppProvider provider, java.lang.String originId)
Create an App with specified Origin ID and archivePath- Parameters:
manager- the deployment managerprovider- the app provideroriginId- the origin ID (The ID that theAppProviderknows about)- See Also:
getOriginId(),getContextPath()
-
App
public App(DeploymentManager manager, AppProvider provider, java.lang.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 theAppProviderknows about)context- Some implementations of AppProvider might have to use an already created ContextHandler.- See Also:
getOriginId(),getContextPath()
-
-
Method Detail
-
getDeploymentManager
public DeploymentManager getDeploymentManager()
- Returns:
- The deployment manager
-
getAppProvider
public AppProvider getAppProvider()
- Returns:
- The AppProvider
-
getContextHandler
public ContextHandler getContextHandler() throws java.lang.Exception
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:
java.lang.Exception- if unable to get the context handler
-
getContextId
public java.lang.String getContextId()
Deprecated.Use getContextPath instead.The context pathApprelating 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
public java.lang.String getContextPath()
The context pathApprelating to how it is installed on the jetty server side.- Returns:
- the contextPath for the App
-
getOriginId
public java.lang.String getOriginId()
The origin of thisAppas specified by theAppProvider- Returns:
- String representing the origin of this app.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-