Code example for Pattern

Methods: pattern

0
    /** 
     * @return get the regular expression 
     */ 
    public String getRegex()
    { 
        return _regex==null?null:_regex.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; 
    } 
 
    /* ------------------------------------------------------------ */ 
    /**