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.Hostobject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChild(TomcatEmbedded.Context context)Deploys a web application.TomcatEmbedded.ContextfindChild(String name)Finds a child with the given name.TomcatEmbedded.Context[]findChildren()Return all context children.StringgetName()Gets the name of this host.voidremoveChild(TomcatEmbedded.Context context)Removes a web application.voidsetAutoDeploy(boolean b)Supposed to enable auto-deployment of war file.
-
-
-
Constructor Detail
-
Host
public Host(Object core)
Wraps aTomcatEmbedded.Hostobject.- 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.
-
-