|
4 | 4 | xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/web-app_6_0.xsd" |
5 | 5 | version="6.0"> |
6 | 6 |
|
7 | | - <context-param> |
8 | | - <param-name>configuration</param-name> |
9 | | - <param-value>development</param-value> |
10 | | - </context-param> |
11 | | - |
12 | | - <display-name>Shiro Security for Apache Wicket Example</display-name> |
13 | | - |
14 | | - <context-param> |
15 | | - <param-name>log4jConfigLocation</param-name> |
16 | | - <param-value>classpath:log4j.properties</param-value> |
17 | | - </context-param> |
18 | | - |
19 | | - <filter> |
20 | | - <filter-name>ShiroFilter</filter-name> |
21 | | - <filter-class>org.apache.shiro.web.servlet.IniShiroFilter</filter-class> |
22 | | - <init-param> |
23 | | - <param-name>config</param-name> |
24 | | - <param-value> |
25 | | - # The ShiroFilter configuration is very powerful and flexible, while still remaining succinct. |
26 | | - # Please read the comprehensive example, with full comments and explanations, in the JavaDoc: |
27 | | - # |
28 | | - # http://www.jsecurity.org/api/org/jsecurity/web/servlet/JSecurityFilter.html |
29 | | - |
30 | | - [main] |
31 | | - stupidRealm = org.wicketstuff.shiro.example.realm.SillyRealm |
32 | | - </param-value> |
33 | | - </init-param> |
34 | | - </filter> |
35 | | - <filter> |
36 | | - <filter-name>WicketFilter</filter-name> |
37 | | - <filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class> |
38 | | - <init-param> |
39 | | - <param-name>applicationClassName</param-name> |
40 | | - <param-value>org.wicketstuff.shiro.example.realm.RealmExampleApp</param-value> |
41 | | - </init-param> |
42 | | - </filter> |
43 | | - |
44 | | - <filter-mapping> |
45 | | - <filter-name>ShiroFilter</filter-name> |
46 | | - <url-pattern>/*</url-pattern> |
47 | | - </filter-mapping> |
48 | | - <filter-mapping> |
49 | | - <filter-name>WicketFilter</filter-name> |
50 | | - <url-pattern>/*</url-pattern> |
51 | | - </filter-mapping> |
52 | | - |
53 | | - <welcome-file-list> |
54 | | - <welcome-file>index.jsp</welcome-file> |
55 | | - <welcome-file>index.htm</welcome-file> |
56 | | - <welcome-file>index.shtml</welcome-file> |
57 | | - </welcome-file-list> |
58 | | - |
| 7 | + <context-param> |
| 8 | + <param-name>configuration</param-name> |
| 9 | + <param-value>development</param-value> |
| 10 | + </context-param> |
| 11 | + |
| 12 | + <display-name>Shiro Security for Apache Wicket Example</display-name> |
| 13 | + |
| 14 | + <context-param> |
| 15 | + <param-name>log4jConfigLocation</param-name> |
| 16 | + <param-value>classpath:log4j.properties</param-value> |
| 17 | + </context-param> |
| 18 | + |
| 19 | + <filter> |
| 20 | + <filter-name>ShiroFilter</filter-name> |
| 21 | + <filter-class>org.apache.shiro.web.servlet.IniShiroFilter</filter-class> |
| 22 | + <init-param> |
| 23 | + <param-name>config</param-name> |
| 24 | + <param-value> |
| 25 | + # The ShiroFilter configuration is very powerful and flexible, while still remaining succinct. |
| 26 | + # Please read the comprehensive example, with full comments and explanations, in the JavaDoc: |
| 27 | + # |
| 28 | + # http://www.jsecurity.org/api/org/jsecurity/web/servlet/JSecurityFilter.html |
| 29 | + |
| 30 | + [main] |
| 31 | + stupidRealm = org.wicketstuff.shiro.example.realm.SillyRealm |
| 32 | + </param-value> |
| 33 | + </init-param> |
| 34 | + </filter> |
| 35 | + <filter> |
| 36 | + <filter-name>WicketFilter</filter-name> |
| 37 | + <filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class> |
| 38 | + <init-param> |
| 39 | + <param-name>applicationClassName</param-name> |
| 40 | + <param-value>org.wicketstuff.shiro.example.realm.RealmExampleApp</param-value> |
| 41 | + </init-param> |
| 42 | + </filter> |
| 43 | + |
| 44 | + <filter-mapping> |
| 45 | + <filter-name>ShiroFilter</filter-name> |
| 46 | + <url-pattern>/*</url-pattern> |
| 47 | + </filter-mapping> |
| 48 | + <filter-mapping> |
| 49 | + <filter-name>WicketFilter</filter-name> |
| 50 | + <url-pattern>/*</url-pattern> |
| 51 | + </filter-mapping> |
| 52 | + |
| 53 | + <welcome-file-list> |
| 54 | + <welcome-file>index.jsp</welcome-file> |
| 55 | + <welcome-file>index.htm</welcome-file> |
| 56 | + <welcome-file>index.shtml</welcome-file> |
| 57 | + </welcome-file-list> |
59 | 58 | </web-app> |
0 commit comments