aboutsummaryrefslogtreecommitdiff
path: root/src/main/webapp
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2012-12-26 00:56:23 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2012-12-26 00:56:23 +0100
commit97b1b1eeacd72845cc7065c86d68444881370275 (patch)
tree71420916e60945d5f7778ea8f11f6b11b3485466 /src/main/webapp
parent70595c41ce404ca68aaa6d1b531c6a858492553b (diff)
downloadesper-testing-97b1b1eeacd72845cc7065c86d68444881370275.tar.gz
esper-testing-97b1b1eeacd72845cc7065c86d68444881370275.tar.bz2
esper-testing-97b1b1eeacd72845cc7065c86d68444881370275.tar.xz
esper-testing-97b1b1eeacd72845cc7065c86d68444881370275.zip
o Adding urlrewrite filter to get some prettier URLs.
Diffstat (limited to 'src/main/webapp')
-rw-r--r--src/main/webapp/WEB-INF/urlrewrite.xml18
-rw-r--r--src/main/webapp/WEB-INF/web.xml40
2 files changed, 51 insertions, 7 deletions
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 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE urlrewrite PUBLIC "-//tuckey.org//DTD UrlRewrite 4.0//EN"
+ "http://www.tuckey.org/res/dtds/urlrewrite4.0.dtd">
+
+<!--
+
+ See http://urlrewritefilter.googlecode.com/svn/trunk/src/doc/manual/4.0/index.html
+
+-->
+
+<urlrewrite>
+
+ <rule match-type="wildcard">
+ <from>/</from>
+ <to type="forward">/index.jspx</to>
+ </rule>
+
+</urlrewrite>
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 @@
<filter-class>org.apache.shiro.web.servlet.ShiroFilter</filter-class>
</filter>
- <filter-mapping>
- <filter-name>ShiroFilter</filter-name>
- <url-pattern>/*</url-pattern>
- </filter-mapping>
+ <filter>
+ <filter-name>Url Rewrite Filter</filter-name>
+ <filter-class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-class>
+
+ <!-- set the amount of seconds the conf file will be checked for reload
+ can be a valid integer (0 denotes check every time,
+ -1 denotes no reload check, default -1) -->
+ <init-param>
+ <param-name>confReloadCheckInterval</param-name>
+ <param-value>60</param-value>
+ </init-param>
+
+ <!-- sets up log level (will be logged to context log)
+ can be: slf4j, TRACE, DEBUG, INFO (default), WARN, ERROR, FATAL,
+ sysout:{level} (ie, sysout:DEBUG)
+ if you are having trouble using normal levels use sysout:DEBUG
+ (default WARN) -->
+ <init-param>
+ <param-name>logLevel</param-name>
+ <param-value>slf4j</param-value>
+ </init-param>
+ </filter>
<filter>
<filter-name>Jersey</filter-name>
- <!--
- <filter-class>org.glassfish.jersey.servlet.ServletContainer</filter-class>
- -->
<filter-class>com.sun.jersey.spi.container.servlet.ServletContainer</filter-class>
<init-param>
<param-name>javax.ws.rs.Application</param-name>
@@ -39,6 +54,17 @@
<param-value>true</param-value>
</init-param>
</filter>
+
+ <filter-mapping>
+ <filter-name>ShiroFilter</filter-name>
+ <url-pattern>/*</url-pattern>
+ </filter-mapping>
+
+ <filter-mapping>
+ <filter-name>Url Rewrite Filter</filter-name>
+ <url-pattern>/*</url-pattern>
+ </filter-mapping>
+
<filter-mapping>
<filter-name>Jersey</filter-name>
<url-pattern>/*</url-pattern>