mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-22 21:55:39 +00:00
54 lines
2.2 KiB
XML
54 lines
2.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
|
|
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
|
|
|
|
<!-- Apache Shiro -->
|
|
<context-param>
|
|
<param-name>shiroEnvironmentClass</param-name>
|
|
<param-value>org.apache.shiro.web.env.IniWebEnvironment</param-value>
|
|
</context-param>
|
|
<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>
|
|
<!-- Make sure any request you want accessible to Shiro is filtered. "/*" catches all requests. Usually this filter mapping
|
|
is defined first (before all others) to ensure that Shiro works in subsequent filters in the filter chain: -->
|
|
<filter-mapping>
|
|
<filter-name>ShiroFilter</filter-name>
|
|
<url-pattern>/*</url-pattern>
|
|
<dispatcher>REQUEST</dispatcher>
|
|
<dispatcher>FORWARD</dispatcher>
|
|
<dispatcher>INCLUDE</dispatcher>
|
|
<dispatcher>ERROR</dispatcher>
|
|
</filter-mapping>
|
|
|
|
<servlet>
|
|
<servlet-name>ClearSateServlet</servlet-name>
|
|
<servlet-class>com.sap.sailing.server.gateway.test.support.ClearStateServlet</servlet-class>
|
|
</servlet>
|
|
<servlet-mapping>
|
|
<servlet-name>ClearSateServlet</servlet-name>
|
|
<url-pattern>/clearState</url-pattern>
|
|
</servlet-mapping>
|
|
<servlet>
|
|
<servlet-name>CreateSessionServlet</servlet-name>
|
|
<servlet-class>com.sap.sailing.server.gateway.test.support.CreateSessionServlet</servlet-class>
|
|
</servlet>
|
|
<servlet-mapping>
|
|
<servlet-name>CreateSessionServlet</servlet-name>
|
|
<url-pattern>/createSession</url-pattern>
|
|
</servlet-mapping>
|
|
<servlet>
|
|
<servlet-name>WhitelabelSwitchServlet</servlet-name>
|
|
<servlet-class>com.sap.sailing.server.gateway.test.support.WhitelabelSwitchServlet</servlet-class>
|
|
</servlet>
|
|
<servlet-mapping>
|
|
<servlet-name>WhitelabelSwitchServlet</servlet-name>
|
|
<url-pattern>/switch/whitelabel/*</url-pattern>
|
|
</servlet-mapping>
|
|
</web-app>
|