Class TomcatEmbedded.Host
- java.lang.Object
-
- org.codehaus.cargo.container.tomcat.internal.TomcatEmbedded.Host
-
- Enclosing class:
- TomcatEmbedded
public final class TomcatEmbedded.Host extends Object
Copy oforg.apache.catalina.Host
-
-
Constructor Summary
Constructors Constructor Description Host(Object core)
Wraps aTomcatEmbedded.Host
object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addChild(TomcatEmbedded.Context context)
Deploys a web application.TomcatEmbedded.Context
findChild(String name)
Finds a child with the given name.TomcatEmbedded.Context[]
findChildren()
Return all context children.String
getName()
Gets the name of this host.void
removeChild(TomcatEmbedded.Context context)
Removes a web application.void
setAutoDeploy(boolean b)
Supposed to enable auto-deployment of war file.
-
-
-
Constructor Detail
-
Host
public Host(Object core)
Wraps aTomcatEmbedded.Host
object.- Parameters:
core
- non-null.
-
-
Method Detail
-
setAutoDeploy
public void setAutoDeploy(boolean b)
Supposed to enable auto-deployment of war file.- Parameters:
b
- true to enable.
-
getName
public String getName()
Gets the name of this host.- Returns:
- host name.
-
addChild
public void addChild(TomcatEmbedded.Context context)
Deploys a web application.- Parameters:
context
- context to be deployed.
-
findChildren
public TomcatEmbedded.Context[] findChildren()
Return all context children.- Returns:
- All context children.
-
findChild
public TomcatEmbedded.Context findChild(String name)
Finds a child with the given name.- Parameters:
name
- Name of the child.- Returns:
- Child with the given name.
-
removeChild
public void removeChild(TomcatEmbedded.Context context)
Removes a web application.- Parameters:
context
- context to be removed.
-
-