public class BeanShellRule extends Rule
| Modifier and Type | Field and Description |
|---|---|
private bsh.Interpreter |
i |
private java.util.regex.Pattern |
path |
private java.lang.String |
script |
| Constructor and Description |
|---|
BeanShellRule(java.lang.String fileLocation,
java.lang.String id,
java.util.regex.Pattern path) |
| Modifier and Type | Method and Description |
|---|---|
Action |
check(javax.servlet.http.HttpServletRequest request,
InterceptingHTTPServletResponse response,
javax.servlet.http.HttpServletResponse httpResponse) |
private java.lang.String |
getFileContents(java.io.File f) |
private bsh.Interpreter i
private java.lang.String script
private java.util.regex.Pattern path
public BeanShellRule(java.lang.String fileLocation,
java.lang.String id,
java.util.regex.Pattern path)
throws java.io.IOException,
bsh.EvalError
java.io.IOExceptionbsh.EvalErrorpublic Action check(javax.servlet.http.HttpServletRequest request, InterceptingHTTPServletResponse response, javax.servlet.http.HttpServletResponse httpResponse)
private java.lang.String getFileContents(java.io.File f)
throws java.io.IOException
java.io.IOException