Class EAR
- java.lang.Object
-
- org.codehaus.cargo.util.log.LoggedObject
-
- org.codehaus.cargo.container.spi.deployable.AbstractDeployable
-
- org.codehaus.cargo.container.deployable.EAR
-
- All Implemented Interfaces:
Deployable
,Loggable
- Direct Known Subclasses:
GeronimoEAR
public class EAR extends AbstractDeployable
Wraps an EAR file that will be deployed in the container.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
Returns the name of this deployable.DeployableType
getType()
List<String>
getWebContexts()
String
getWebUri(String context)
List<String>
getWebUris()
void
setName(String name)
Sets the name of this deployable.-
Methods inherited from class org.codehaus.cargo.container.spi.deployable.AbstractDeployable
equals, getFile, getFileHandler, hashCode, isExpanded, setFileHandler, toString
-
Methods inherited from class org.codehaus.cargo.util.log.LoggedObject
getLogger, setLogger
-
-
-
-
Constructor Detail
-
EAR
public EAR(String ear)
- See Also:
AbstractDeployable(String)
-
-
Method Detail
-
setName
public void setName(String name)
Sets the name of this deployable. It can be anything (there's no special rule).- Parameters:
name
- the name of this deployable
-
getName
public String getName()
Returns the name of this deployable. If not specified by user, it is computed from the EAR's file name (removing the filename extension).- Specified by:
getName
in interfaceDeployable
- Overrides:
getName
in classAbstractDeployable
- Returns:
- the name of this deployable
-
getWebContexts
public List<String> getWebContexts()
- Returns:
- the list of Web contexts of all WAR files contained in the wrapped EAR
-
getWebUris
public List<String> getWebUris()
- Returns:
- the list of Web URIs of all WAR files contained in the wrapped EAR
-
getWebUri
public String getWebUri(String context)
- Parameters:
context
- the context for which we want to find out the web URI- Returns:
- the web URI for the WAR matching the context passed as parameter
-
getType
public DeployableType getType()
- Returns:
- the deployable's type (war, ear, etc)
-
-