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, org.codehaus.cargo.util.log.Loggable

public class EAR
extends AbstractDeployable

Wraps an EAR file that will be deployed in the container.

Version:
$Id: EAR.java 1163 2006-07-31 09:19:12Z vmassol $

Constructor Summary
EAR(java.lang.String ear)
          
 
Method Summary
 java.lang.String getName()
           
 DeployableType getType()
          
 java.util.Iterator getWebContexts()
           
 java.lang.String getWebUri(java.lang.String context)
           
 void setName(java.lang.String name)
           
 
Methods inherited from class org.codehaus.cargo.container.spi.deployable.AbstractDeployable
getFile, getFileHandler, 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(java.lang.String ear)

See Also:
AbstractDeployable.AbstractDeployable(String)
Method Detail

setName

public void setName(java.lang.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 java.lang.String getName()
Returns:
the name of this deployable

getWebContexts

public java.util.Iterator getWebContexts()
Returns:
the list of Web contexts of all WAR files contained in the wrapped EAR

getWebUri

public java.lang.String getWebUri(java.lang.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-2010 Codehaus. All Rights Reserved.