org.apache.cactus.integration.ant.container
Class AbstractDeployableFile
java.lang.Object
org.apache.cactus.integration.ant.container.AbstractDeployableFile
- All Implemented Interfaces:
- DeployableFile
- Direct Known Subclasses:
- EarDeployableFile, WarDeployableFile
- public abstract class AbstractDeployableFile
- extends java.lang.Object
- implements DeployableFile
Logic common to all deployable implementations (WAR and EAR
deployments).
- Since:
- Cactus 1.5
- Version:
- $Id: AbstractDeployableFile.java,v 1.1.2.2 2003/10/25 17:22:05 vmassol Exp $
- Author:
- Vincent Massol
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractDeployableFile
public AbstractDeployableFile()
getFile
public final java.io.File getFile()
- Specified by:
getFile
in interface DeployableFile
- Returns:
- the file to deploy in a container (either WAR or EAR)
- See Also:
DeployableFile.getFile()
setFile
public final void setFile(java.io.File theDeployableFile)
- Parameters:
theDeployableFile
- the file to deploy
getTestContext
public final java.lang.String getTestContext()
- Specified by:
getTestContext
in interface DeployableFile
- Returns:
- the webapp context which holds the Cactus tests
- See Also:
DeployableFile.getTestContext()
setTestContext
public final void setTestContext(java.lang.String theTestContext)
- Parameters:
theTestContext
- the test context that will be used to test if the
container is started or not
getServletRedirectorMapping
public final java.lang.String getServletRedirectorMapping()
- Description copied from interface:
DeployableFile
- Returns the first URL-pattern to which the Cactus servlet redirector is
mapped in the deployment descriptor.
- Specified by:
getServletRedirectorMapping
in interface DeployableFile
- Returns:
- The mapping, or
null
if the servlet redirector is
not defined or mapped in the descriptor - See Also:
DeployableFile.getServletRedirectorMapping()
setServletRedirectorMapping
public final void setServletRedirectorMapping(java.lang.String theMapping)
- Parameters:
theMapping
- the servlet redirector mapping
getFilterRedirectorMapping
public final java.lang.String getFilterRedirectorMapping()
- Description copied from interface:
DeployableFile
- Returns the first URL-pattern to which the Cactus filter redirector is
mapped in the deployment descriptor.
- Specified by:
getFilterRedirectorMapping
in interface DeployableFile
- Returns:
- The mapping, or
null
if the filter redirector is
not defined or mapped in the descriptor - See Also:
DeployableFile.getFilterRedirectorMapping()
setFilterRedirectorMapping
public final void setFilterRedirectorMapping(java.lang.String theMapping)
- Parameters:
theMapping
- the filter redirector mapping
getJspRedirectorMapping
public final java.lang.String getJspRedirectorMapping()
- Description copied from interface:
DeployableFile
- Returns the first URL-pattern to which the Cactus JSP redirector is
mapped in the deployment descriptor.
- Specified by:
getJspRedirectorMapping
in interface DeployableFile
- Returns:
- The mapping, or
null
if the JSP redirector is
not defined or mapped in the descriptor - See Also:
DeployableFile.getJspRedirectorMapping()
setJspRedirectorMapping
public final void setJspRedirectorMapping(java.lang.String theMapping)
- Parameters:
theMapping
- the JSP redirector mapping
getWarArchive
public final WarArchive getWarArchive()
- Specified by:
getWarArchive
in interface DeployableFile
- Returns:
- the WAR deployment descriptor object for the WAR containing
the Cactus Servlet redirector
- See Also:
DeployableFile.getWarArchive()
setWarArchive
public final void setWarArchive(WarArchive theWarArchive)
- Parameters:
theWarArchive
- the WAR archive object
Copyright © 2000-2003 Apache Software Foundation. All Rights Reserved.