/** * Returns the replacement string. */ @Override public String toString() { return super.toString()+"["+_replacement+"]"; } }
protected RegexRule(String pattern) { setRegex(pattern); }
public String matchAndApply(String target, HttpServletRequest request, HttpServletResponse response) throws IOException { Matcher matcher=_regex.matcher(target); boolean matches = matcher.matches(); if (matches) return apply(target,request,response, matcher); return null; }
public TerminatingRegexRule(@Name("regex") String regex) { super(regex); super.setTerminating(true); }
@Override public String matchAndApply(String target, HttpServletRequest request, HttpServletResponse response) throws IOException { Matcher matcher=_regex.matcher(target); boolean matches = matcher.matches(); if (matches) return apply(target,request,response, matcher); return null; }
/** * Returns the replacement string. */ public String toString() { return super.toString()+"["+_replacement+"]"; } }
@Override public String matchAndApply(String target, HttpServletRequest request, HttpServletResponse response) throws IOException { Matcher matcher=_regex.matcher(target); boolean matches = matcher.matches(); if (matches) return apply(target,request,response, matcher); return null; }
/** * @return the header contents. */ @Override public String toString() { return super.toString()+"["+_name+","+_value+"]"; } }
@Override public String matchAndApply(String target, HttpServletRequest request, HttpServletResponse response) throws IOException { Matcher matcher=_regex.matcher(target); boolean matches = matcher.matches(); if (matches) return apply(target,request,response, matcher); return null; }
/** * Returns the replacement string. */ @Override public String toString() { return super.toString()+"["+_replacement+"]"; } }
/** * Returns the replacement string. */ @Override public String toString() { return super.toString()+"["+_replacement+"]"; } }
/** * Returns the redirect status code and replacement. */ @Override public String toString() { StringBuilder str = new StringBuilder(); str.append(super.toString()); str.append('[').append(_statusCode); str.append('>').append(_location); str.append(']'); return str.toString(); }