org.apache.cactus.integration.ant.container
Interface DeployableFile

All Known Implementing Classes:
AbstractDeployableFile

public interface DeployableFile

Represents a component to deploy in a container. It can either be a WAR or an EAR file.

Version:
$Id: DeployableFile.java,v 1.1.2.1 2003/09/07 20:17:09 vmassol Exp $
Author:
Vincent Massol

Method Summary
 java.io.File getFile()
           
 java.lang.String getFilterRedirectorMapping()
          Returns the first URL-pattern to which the Cactus filter redirector is mapped in the deployment descriptor.
 java.lang.String getJspRedirectorMapping()
          Returns the first URL-pattern to which the Cactus JSP redirector is mapped in the deployment descriptor.
 java.lang.String getServletRedirectorMapping()
          Returns the first URL-pattern to which the Cactus servlet redirector is mapped in the deployment descriptor.
 java.lang.String getTestContext()
           
 WarArchive getWarArchive()
           
 boolean isEar()
          Returns whether the deployable file is an enterprise application archive (EAR).
 boolean isWar()
          Returns whether the deployable file is a web-app archive (WAR).
 

Method Detail

getFile

public java.io.File getFile()
Returns:
the file to deploy in a container (either WAR or EAR)

isWar

public boolean isWar()
Returns whether the deployable file is a web-app archive (WAR).

Returns:
true if the deployable file is a WAR

isEar

public boolean isEar()
Returns whether the deployable file is an enterprise application archive (EAR).

Returns:
true if the deployable file is a EAR

getWarArchive

public WarArchive getWarArchive()
Returns:
the WAR deployment descriptor object for the WAR containing the Cactus Servlet redirector

getTestContext

public java.lang.String getTestContext()
Returns:
the webapp context which holds the Cactus tests

getServletRedirectorMapping

public java.lang.String getServletRedirectorMapping()
Returns the first URL-pattern to which the Cactus servlet redirector is mapped in the deployment descriptor.

Returns:
The mapping, or null if the servlet redirector is not defined or mapped in the descriptor

getFilterRedirectorMapping

public java.lang.String getFilterRedirectorMapping()
Returns the first URL-pattern to which the Cactus filter redirector is mapped in the deployment descriptor.

Returns:
The mapping, or null if the filter redirector is not defined or mapped in the descriptor

getJspRedirectorMapping

public java.lang.String getJspRedirectorMapping()
Returns the first URL-pattern to which the Cactus JSP redirector is mapped in the deployment descriptor.

Returns:
The mapping, or null if the JSP redirector is not defined or mapped in the descriptor


Copyright © 2000-2003 Apache Software Foundation. All Rights Reserved.