org.apache.tools.ant.taskdefs.optional.jspClass JspNameMangler
- java.lang.Object
- org.apache.tools.ant.taskdefs.optional.jsp.JspNameMangler
- All Implemented Interfaces:
- JspMangler
public class JspNameMangler extends java.lang.Object implements JspManglerThis is a class derived from the Jasper code (org.apache.jasper.compiler.CommandLineCompiler) to map from a JSP filename to a valid Java classname.
Field Summary
Fields Modifier and Type Field and Description static java.lang.String[]
keywords
this is the list of keywords which can not be used as classnames
Constructor Summary
Constructors Constructor and Description JspNameMangler()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.String
mapJspToJavaName(java.io.File jspFile)
map from a jsp file to a java filename; does not do packagesjava.lang.String
mapPath(java.lang.String path)
taking in the substring representing the path relative to the source dir return a new string representing the destination path not supported, as jasper in tomcat4.0 doesn't either
Field Detail
keywords
public static final java.lang.String[] keywordsthis is the list of keywords which can not be used as classnames
Method Detail
mapJspToJavaName
public java.lang.String mapJspToJavaName(java.io.File jspFile)map from a jsp file to a java filename; does not do packages
- Specified by:
mapJspToJavaName
in interfaceJspMangler
- Parameters:
jspFile
- file- Returns:
- java filename
mapPath
public java.lang.String mapPath(java.lang.String path)taking in the substring representing the path relative to the source dir return a new string representing the destination path not supported, as jasper in tomcat4.0 doesn't either
- Specified by:
mapPath
in interfaceJspMangler
- Parameters:
path
- not used- Returns:
- null always.