Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
317 ashish 1
<?xml version="1.0" encoding="UTF-8" ?>
2
<!--
3
/*
4
 * $Id: struts-plugin.xml 722219 2008-12-01 20:41:26Z musachy $
5
 *
6
 * Licensed to the Apache Software Foundation (ASF) under one
7
 * or more contributor license agreements.  See the NOTICE file
8
 * distributed with this work for additional information
9
 * regarding copyright ownership.  The ASF licenses this file
10
 * to you under the Apache License, Version 2.0 (the
11
 * "License"); you may not use this file except in compliance
12
 * with the License.  You may obtain a copy of the License at
13
 *
14
 *  http://www.apache.org/licenses/LICENSE-2.0
15
 *
16
 * Unless required by applicable law or agreed to in writing,
17
 * software distributed under the License is distributed on an
18
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19
 * KIND, either express or implied.  See the License for the
20
 * specific language governing permissions and limitations
21
 * under the License.
22
 */
23
-->
24
 
25
<!DOCTYPE struts PUBLIC
26
        "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
27
        "http://struts.apache.org/dtds/struts-2.0.dtd">
28
 
29
<struts>
650 rajveer 30
 
31
 
32
 
33
 
34
 
408 ashish 35
	<bean type="org.apache.struts2.rest.handler.ContentTypeHandler" name="myxml" class="in.shop2020.serving.controllers.handler.SxstreamContentHandler" />
406 ashish 36
 
317 ashish 37
    <!--  Overwrite Convention -->
38
    <constant name="struts.convention.action.suffix" value="Controller"/>
39
    <constant name="struts.convention.action.mapAllMatches" value="true"/>
40
    <constant name="struts.convention.default.parent.package" value="rest-default"/>
41
 
42
    <constant name="struts.convention.package.locators" value="controllers"/>
43
    <constant name="struts.convention.relative.result.types" value="velocity"/>
650 rajveer 44
 
45
    <package name="default" extends="rest-default">
46
		<interceptors>
47
	    	<interceptor name="login" class="in.shop2020.serving.interceptors.LoginInterceptor" />
48
 	    	<interceptor-stack name="myStack">
49
    			<interceptor-ref name="login"/>
50
    			<interceptor-ref name="defaultStack"/>
51
	  		</interceptor-stack>
52
 	    </interceptors>
53
	    <default-interceptor-ref name="restDefaultStack"/>
54
	</package>
55
 
317 ashish 56
</struts>