A common ground dealing with the HTTP servlet API wrinkles.
Resource name mangling (pattern replacement)
Also implements Groovy's
groovy.util.ResourceConnector in dynamic
manner. It allows to modifiy the resource name that is searched for with a
replace all operation. See
java.util.regex.Pattern and
java.util.regex.Matcher for details.
The servlet init parameter names are:
resource.name.regex = empty - defaults to null
resource.name.replacement = empty - defaults to null
resource.name.replace.all = true (default) | false means replaceFirst()
Note: If you specify a regex, you have to specify a replacement string too!
Otherwise an exception gets raised.
Logging and bug-hunting options
This implementation provides a verbosity flag switching log statements.
The servlet init parameter name is:
verbose = false(default) | true
In order to support class-loading-troubles-debugging with Tomcat 4 or
higher, you can log the class loader responsible for loading some classes.
See GROOVY-861 for details.
The servlet init parameter name is:
log.GROOVY861 = false(default) | true
If you experience class-loading-troubles with Tomcat 4 (or higher) or any
other servlet container using custom class loader setups, you can fallback
to use (slower) reflection in Groovy's MetaClass implementation. Please
contact the dev team with your problem! Thanks.
The servlet init parameter name is:
reflection = false(default) | true
author: Christian Stein |