public class HostContainer extends java.lang.Object implements InvocationBuilder
Constructor and Description |
---|
HostContainer(ServletService server)
Creates the webApp with its environment loader.
|
Modifier and Type | Method and Description |
---|---|
void |
addEarDefault(EarConfig init)
Adds an ear default
|
void |
addHost(HostConfig hostConfig)
Adds a host.
|
void |
addHostDefault(HostConfig init)
Adds a host default
|
void |
addHostDeploy(HostExpandDeployGenerator hostDeploy)
Adds a host deploy
|
void |
addWebAppDefault(WebAppConfig init)
Adds a web-app default
|
Invocation |
buildInvocation(Invocation invocation)
Creates the invocation.
|
void |
clearCache()
Clears the cache.
|
HostExpandDeployGenerator |
createHostDeploy()
Creates a host deploy
|
RewriteDispatch |
createRewriteDispatch()
Adds rewrite-dispatch.
|
void |
destroy()
Closes the container.
|
java.lang.ClassLoader |
getClassLoader()
Gets the environment class loader.
|
java.util.ArrayList<EarConfig> |
getEarDefaultList()
Returns the list of ear defaults
|
WebApp |
getErrorWebApp()
Returns the error webApp during startup.
|
Host |
getHost(java.lang.String hostName,
int port)
Returns the matching host.
|
HostController |
getHostController(java.lang.String hostName,
int port)
Returns the matching host.
|
java.util.ArrayList<HostConfig> |
getHostDefaultList()
Returns the list of host defaults
|
DeployContainerApi<HostController> |
getHostDeployContainer() |
HostController[] |
getHostList() |
Path |
getRootDirectory()
Gets the root directory.
|
ServletService |
getServer()
Gets the dispatch server.
|
java.lang.String |
getStageTag() |
java.lang.String |
getURL()
Gets the URL for the default server.
|
java.util.ArrayList<WebAppConfig> |
getWebAppDefaultList()
Returns the list of web-app defaults
|
void |
setRootDir(Path path)
Deprecated.
|
void |
setRootDirectory(Path path)
Sets the root directory.
|
void |
setURL(java.lang.String url)
Sets the URL for the default server.
|
void |
start()
Starts the container.
|
void |
stop()
Stops the container.
|
public HostContainer(ServletService server)
public java.lang.String getStageTag()
public java.lang.ClassLoader getClassLoader()
public void setURL(java.lang.String url)
public java.lang.String getURL()
public ServletService getServer()
public Path getRootDirectory()
public void setRootDirectory(Path path)
public void setRootDir(Path path)
public void addHostDefault(HostConfig init)
public java.util.ArrayList<HostConfig> getHostDefaultList()
public HostExpandDeployGenerator createHostDeploy()
public DeployContainerApi<HostController> getHostDeployContainer()
public void addHostDeploy(HostExpandDeployGenerator hostDeploy)
public void addHost(HostConfig hostConfig)
public void addWebAppDefault(WebAppConfig init)
public java.util.ArrayList<WebAppConfig> getWebAppDefaultList()
public void addEarDefault(EarConfig init)
public java.util.ArrayList<EarConfig> getEarDefaultList()
public RewriteDispatch createRewriteDispatch()
public void clearCache()
public Invocation buildInvocation(Invocation invocation)
buildInvocation
in interface InvocationBuilder
public HostController[] getHostList()
public Host getHost(java.lang.String hostName, int port)
public HostController getHostController(java.lang.String hostName, int port)
public WebApp getErrorWebApp()
public void start()
public void stop()
public void destroy()