org.codehaus.cargo.container.deployable
Class EAR

java.lang.Object
  extended by org.codehaus.cargo.util.log.LoggedObject
      extended by org.codehaus.cargo.container.spi.deployable.AbstractDeployable
          extended by 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 $

Constructor Summary
EAR(String ear)
          
 
Method Summary
 String getName()
           
 DeployableType getType()
          
 Iterator getWebContexts()
           
 String getWebUri(String context)
           
 void setName(String name)
           
 
Methods inherited from class org.codehaus.cargo.container.spi.deployable.AbstractDeployable
getFile, getFileHandler, isExpanded, setFileHandler
 
Methods inherited from class org.codehaus.cargo.util.log.LoggedObject
getLogger, setLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.codehaus.cargo.util.log.Loggable
getLogger, setLogger
 

Constructor Detail

EAR

public EAR(String ear)

See Also:
AbstractDeployable.AbstractDeployable(String)
Method Detail

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.