| 9103 |
anupam.sin |
1 |
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
2 |
<!-- /* * $Id: struts-plugin.xml 722219 2008-12-01 20:41:26Z musachy $ *
|
|
|
3 |
* Licensed to the Apache Software Foundation (ASF) under one * or more contributor
|
|
|
4 |
license agreements. See the NOTICE file * distributed with this work for
|
|
|
5 |
additional information * regarding copyright ownership. The ASF licenses
|
|
|
6 |
this file * to you under the Apache License, Version 2.0 (the * "License");
|
|
|
7 |
you may not use this file except in compliance * with the License. You may
|
|
|
8 |
obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0
|
|
|
9 |
* * Unless required by applicable law or agreed to in writing, * software
|
|
|
10 |
distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT
|
|
|
11 |
WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the
|
|
|
12 |
License for the * specific language governing permissions and limitations
|
|
|
13 |
* under the License. */ -->
|
|
|
14 |
|
|
|
15 |
<!DOCTYPE struts PUBLIC
|
|
|
16 |
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
|
|
|
17 |
"http://struts.apache.org/dtds/struts-2.0.dtd">
|
|
|
18 |
|
|
|
19 |
<struts>
|
|
|
20 |
|
|
|
21 |
<bean type="org.apache.struts2.rest.handler.ContentTypeHandler"
|
| 9269 |
amit.gupta |
22 |
name="myxml" class="in.shop2020.mobileapi.serving.controllers.handler.SxstreamContentHandler" />
|
| 9103 |
anupam.sin |
23 |
|
| 9599 |
amit.gupta |
24 |
<!-- <bean name="mymapper" type="org.apache.struts2.dispatcher.mapper.ActionMapper"
|
|
|
25 |
class="in.shop2020.mobileapi.serving.mappers.SaholicMapper" /> -->
|
| 9103 |
anupam.sin |
26 |
|
|
|
27 |
|
|
|
28 |
<!-- Overwrite Convention -->
|
|
|
29 |
<constant name="struts.convention.action.suffix" value="Controller" />
|
|
|
30 |
<constant name="struts.convention.action.mapAllMatches" value="true" />
|
| 21086 |
kshitij.so |
31 |
<constant name="struts.multipart.parser" value="jakarta-stream" />
|
| 9103 |
anupam.sin |
32 |
<constant name="struts.convention.default.parent.package"
|
|
|
33 |
value="default" />
|
|
|
34 |
|
|
|
35 |
<constant name="struts.convention.package.locators" value="controllers" />
|
|
|
36 |
<constant name="struts.convention.relative.result.types"
|
|
|
37 |
value="velocity" />
|
|
|
38 |
|
|
|
39 |
<constant name="struts.action.extension" value=""/>
|
|
|
40 |
<constant name="struts.action.excludePattern" value="/js/.*, /css/.*, /fonts/.*, /images/.*, /unversioned/.*, /helpdocs/.*, /sitemap.xml, /robots.txt"/>
|
|
|
41 |
|
|
|
42 |
<package name="default" extends="rest-default">
|
|
|
43 |
<result-types>
|
| 9269 |
amit.gupta |
44 |
<result-type name="redirect" class="in.shop2020.mobileapi.serving.dispatcher.SaholicServletRedirectResult">
|
| 9103 |
anupam.sin |
45 |
</result-type>
|
|
|
46 |
<result-type name="redirectAction" class="org.apache.struts2.dispatcher.ServletActionRedirectResult">
|
|
|
47 |
</result-type>
|
|
|
48 |
</result-types>
|
| 9612 |
anupam.sin |
49 |
<interceptors>
|
| 9601 |
amit.gupta |
50 |
<interceptor name="user" class="in.shop2020.mobileapi.serving.interceptors.UserInterceptor" />
|
| 9103 |
anupam.sin |
51 |
<interceptor-stack name="myDefault">
|
|
|
52 |
<interceptor-ref name="user">
|
|
|
53 |
<param name="cookieDomain">${in.shop2020.cookieDomain}</param>
|
|
|
54 |
</interceptor-ref>
|
|
|
55 |
<interceptor-ref name="defaultStack">
|
|
|
56 |
<param name="exception.logEnabled">true</param>
|
|
|
57 |
<param name="exception.logLevel">ERROR</param>
|
|
|
58 |
</interceptor-ref>
|
|
|
59 |
<interceptor-ref name="store">
|
|
|
60 |
<param name="operationMode">AUTOMATIC</param>
|
|
|
61 |
</interceptor-ref>
|
|
|
62 |
</interceptor-stack>
|
|
|
63 |
</interceptors>
|
|
|
64 |
|
|
|
65 |
<default-interceptor-ref name="myDefault"></default-interceptor-ref>
|
| 9612 |
anupam.sin |
66 |
<default-action-ref name="default" />
|
| 9103 |
anupam.sin |
67 |
|
|
|
68 |
<global-results>
|
|
|
69 |
<result name="exception" type="redirect">exception</result>
|
|
|
70 |
<result name="login" type="redirect">
|
|
|
71 |
<param name="location">login?redirectUrl=${redirectUrl}</param>
|
|
|
72 |
</result>
|
|
|
73 |
</global-results>
|
|
|
74 |
|
|
|
75 |
<global-exception-mappings>
|
|
|
76 |
<exception-mapping exception="java.lang.Exception"
|
|
|
77 |
result="exception" />
|
|
|
78 |
</global-exception-mappings>
|
|
|
79 |
|
|
|
80 |
<action name="default">
|
|
|
81 |
<result type="redirect">/</result>
|
|
|
82 |
</action>
|
|
|
83 |
</package>
|
|
|
84 |
</struts>
|