From 97b1b1eeacd72845cc7065c86d68444881370275 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Wed, 26 Dec 2012 00:56:23 +0100 Subject: o Adding urlrewrite filter to get some prettier URLs. --- README.md | 4 ++++ etc/config.properties.template | 1 - pom.xml | 19 +++++----------- src/main/webapp/WEB-INF/urlrewrite.xml | 18 +++++++++++++++ src/main/webapp/WEB-INF/web.xml | 40 ++++++++++++++++++++++++++++------ 5 files changed, 60 insertions(+), 22 deletions(-) create mode 100644 src/main/webapp/WEB-INF/urlrewrite.xml diff --git a/README.md b/README.md index 584d730..3d9acb1 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,10 @@ Level 1: 3 programmers Level 2: 4 programmers Level 3: 5 programmers +## Aggressive + +N commits per day/week + # BF3 Nomenclature Two types of "awards": "ribbons" and "medals". A medal is given for repeatedly awarded a ribbon. diff --git a/etc/config.properties.template b/etc/config.properties.template index a8c4b97..485dcf4 100644 --- a/etc/config.properties.template +++ b/etc/config.properties.template @@ -7,7 +7,6 @@ nexus.updateInterval=3600 jenkins.updateInterval=3600 -database.driver= database.url=jdbc:h2:tcp://127.0.0.1/esper;DB_CLOSE_DELAY=-1 database.username= database.password= diff --git a/pom.xml b/pom.xml index e578079..a13be9b 100644 --- a/pom.xml +++ b/pom.xml @@ -24,20 +24,6 @@ jersey-json 1.16 - - - com.espertech esper @@ -129,6 +115,11 @@ shiro-web 1.2.1 + + org.tuckey + urlrewritefilter + 4.0.3 + junit junit diff --git a/src/main/webapp/WEB-INF/urlrewrite.xml b/src/main/webapp/WEB-INF/urlrewrite.xml new file mode 100644 index 0000000..ff4bf10 --- /dev/null +++ b/src/main/webapp/WEB-INF/urlrewrite.xml @@ -0,0 +1,18 @@ + + + + + + + + + / + /index.jspx + + + diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml index 0a48260..ed33a8f 100644 --- a/src/main/webapp/WEB-INF/web.xml +++ b/src/main/webapp/WEB-INF/web.xml @@ -11,16 +11,31 @@ org.apache.shiro.web.servlet.ShiroFilter - - ShiroFilter - /* - + + Url Rewrite Filter + org.tuckey.web.filters.urlrewrite.UrlRewriteFilter + + + + confReloadCheckInterval + 60 + + + + + logLevel + slf4j + + Jersey - com.sun.jersey.spi.container.servlet.ServletContainer javax.ws.rs.Application @@ -39,6 +54,17 @@ true + + + ShiroFilter + /* + + + + Url Rewrite Filter + /* + + Jersey /* -- cgit v1.2.3