aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/webapp/WEB-INF/web.xml
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/resources/webapp/WEB-INF/web.xml')
-rw-r--r--src/main/resources/webapp/WEB-INF/web.xml76
1 files changed, 76 insertions, 0 deletions
diff --git a/src/main/resources/webapp/WEB-INF/web.xml b/src/main/resources/webapp/WEB-INF/web.xml
new file mode 100644
index 0000000..ed33a8f
--- /dev/null
+++ b/src/main/resources/webapp/WEB-INF/web.xml
@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
+ version="3.0">
+ <listener>
+ <listener-class>org.apache.shiro.web.env.EnvironmentLoaderListener</listener-class>
+ </listener>
+
+ <filter>
+ <filter-name>ShiroFilter</filter-name>
+ <filter-class>org.apache.shiro.web.servlet.ShiroFilter</filter-class>
+ </filter>
+
+ <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>com.sun.jersey.spi.container.servlet.ServletContainer</filter-class>
+ <init-param>
+ <param-name>javax.ws.rs.Application</param-name>
+ <param-value>io.trygvis.esper.testing.web.JerseyApplication</param-value>
+ </init-param>
+ <init-param>
+ <param-name>jersey.config.servlet.filter.staticContentRegex</param-name>
+ <param-value>/(image|css|external)/.*</param-value>
+ </init-param>
+ <init-param>
+ <param-name>com.sun.jersey.config.feature.FilterForwardOn404</param-name>
+ <param-value>true</param-value>
+ </init-param>
+ <init-param>
+ <param-name>com.sun.jersey.api.json.POJOMappingFeature</param-name>
+ <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>
+ </filter-mapping>
+
+ <welcome-file-list>
+ <welcome-file>index.jspx</welcome-file>
+ </welcome-file-list>
+</web-app>