public WebHandler(String filterUrlRegx, String indexPath) { if (StrKit.isBlank(filterUrlRegx)) { throw new IllegalArgumentException("The para filterUrlRegx can not be blank."); } filterUrlRegxPattern = Pattern.compile(filterUrlRegx); this.indexPath = indexPath; }