org.codehaus.cargo.container.deployable
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.
- Version:
- $Id: EAR.java 1705 2008-09-02 13:14:55Z adriana $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EAR
public EAR(String ear)
-
- See Also:
AbstractDeployable.AbstractDeployable(String)
setName
public void setName(String name)
- Parameters:
name
- the name of this deployable. It can be anything (there's no special rule). If
not specified by user, it is computed from the EAR's file name (removing the filename
extension).
getName
public String getName()
- Returns:
- the name of this deployable
getWebContexts
public Iterator getWebContexts()
- Returns:
- the list of Web contexts 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)
- See Also:
Deployable.getType()
Copyright © 2004-2012 Codehaus. All Rights Reserved.