handlerList.add(createHandler("^/simple_regex$", "/NewSimpleRegex"));
return handlerList;
}
protected URLHandler createHandler(String incomingUrl, String newUrl) {
URLHandler handler = new URLHandlerImpl();
handler.setIncomingURL(incomingUrl);
handler.setNewURL(newUrl);
handler.setUrlRedirectType(URLRedirectType.REDIRECT_PERM);
return handler;
}