org.apache.maven.struts
Class Struts10WarValidator

java.lang.Object
  extended by org.apache.maven.j2ee.WarValidator
      extended by org.apache.maven.struts.Struts10WarValidator

public class Struts10WarValidator
extends org.apache.maven.j2ee.WarValidator

A class that validates a Struts 1.0 War File. Specific validations performed are:

  1. Must pass validation as a 'standard' war file
  2. File has a struts configuration file
  3. <form-bean>s must have a valid type and className that exist in the war
  4. <action>s must have a valid type, className that exist in the war
  5. <action> names must refer to a <form-bean> in the struts configuraion
  6. <action> scope must be either request or session
  7. <action> unknown and validate must be true or false
  8. <global-forwards> type must be a class in the war
  9. <forward> redirect must be true or false
  10. <forward> path must refer to either a file in the war (e.g. a jsp), or an action defined in the struts configuration

Version:
$Id: Struts10WarValidator.java 170200 2005-05-15 06:24:19Z brett $
Author:
dion

Constructor Summary
Struts10WarValidator()
          Creates a new instance of Struts10WarValidator
 
Method Summary
 String getConfig()
          Getter for Struts config location within the war (no leading slash).
 void setConfig(String config)
          Setter for config location within the war (no leading slash)
protected  void validateWarContents()
          Validate struts specific war features here
 
Methods inherited from class org.apache.maven.j2ee.WarValidator
addFormatter, addValidationListener, endValidation, error, execute, getBroadcaster, getStatus, getWarFileName, info, isFailOnError, removeValidationListener, setFailOnError, setWarFileName, startValidation, toString, validate, validateClass, validateErrorPages, validateFormLoginConfig, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Struts10WarValidator

public Struts10WarValidator()
Creates a new instance of Struts10WarValidator

Method Detail

setConfig

public void setConfig(String config)
Setter for config location within the war (no leading slash)

Parameters:
config - New value of property config.

getConfig

public String getConfig()
Getter for Struts config location within the war (no leading slash). e.g. WEB-INF/struts-config.xml

Returns:
Value of property config.

validateWarContents

protected void validateWarContents()
Validate struts specific war features here

Overrides:
validateWarContents in class org.apache.maven.j2ee.WarValidator


Copyright © 2001-2006 Apache Software Foundation. All Rights Reserved.