Class EAR
- java.lang.Object
-
- org.codehaus.cargo.util.log.LoggedObject
-
- org.codehaus.cargo.container.spi.deployable.AbstractDeployable
-
- org.codehaus.cargo.container.spi.deployable.AbstractDeployablewithSettableName
-
- org.codehaus.cargo.container.deployable.EAR
-
- All Implemented Interfaces:
Deployable
,Loggable
- Direct Known Subclasses:
GeronimoEAR
public class EAR extends AbstractDeployablewithSettableName
Wraps an EAR file that will be deployed in the container.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeployableType
getType()
List<String>
getWebContexts()
String
getWebUri(String context)
List<String>
getWebUris()
-
Methods inherited from class org.codehaus.cargo.container.spi.deployable.AbstractDeployablewithSettableName
getFilename, getName, setName
-
Methods inherited from class org.codehaus.cargo.container.spi.deployable.AbstractDeployable
equals, getFile, getFileHandler, getVersion, hashCode, isExpanded, setFileHandler, setLogger, setVersion, toString
-
Methods inherited from class org.codehaus.cargo.util.log.LoggedObject
getLogger
-
-
-
-
Constructor Detail
-
EAR
public EAR(String ear)
- Parameters:
ear
- the location of the EAR being wrapped.
-
-
Method Detail
-
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)
-
-