Statistics
| Branch: | Revision:

m2u-upass-ws / WebContent / WEB-INF / web.xml @ 126:ba591d55eb2a

History | View | Annotate | Download (3.29 KB)

1 50:0a34b4a7fa41 hadi
<?xml version="1.0" encoding="UTF-8"?>
2 126:ba591d55eb2a mohd
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3
        xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
4
        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
5
        id="WebApp_ID" version="3.0">
6
7 50:0a34b4a7fa41 hadi
        <display-name>M2U UPass Web Services</display-name>
8
        <welcome-file-list>
9
                <welcome-file>index.html</welcome-file>
10
                <welcome-file>index.htm</welcome-file>
11
                <welcome-file>index.jsp</welcome-file>
12
                <welcome-file>default.html</welcome-file>
13
                <welcome-file>default.htm</welcome-file>
14
                <welcome-file>default.jsp</welcome-file>
15
        </welcome-file-list>
16
        <servlet>
17
                <display-name>Apache-Axis Servlet</display-name>
18
                <servlet-name>AxisServlet</servlet-name>
19
                <servlet-class>org.apache.axis.transport.http.AxisServlet
20
                </servlet-class>
21 0:53910be9bd5d hadi
        </servlet>
22 86:31691154086a mohd
        <servlet>
23
                <servlet-name>Jersey Web Application</servlet-name>
24
                <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer
25
                </servlet-class>
26
                <init-param>
27
                        <param-name>com.sun.jersey.config.property.packages</param-name>
28
                        <param-value>my.com.upass.maybank</param-value>
29
                </init-param>
30
                <init-param>
31
                        <param-name>com.sun.jersey.api.json.POJOMappingFeature</param-name>
32
                        <param-value>true</param-value>
33
                </init-param>
34
                <load-on-startup>1</load-on-startup>
35
        </servlet>
36
        <servlet-mapping>
37
                <servlet-name>Jersey Web Application</servlet-name>
38
                <url-pattern>/rest/*</url-pattern>
39
        </servlet-mapping>
40 50:0a34b4a7fa41 hadi
        <servlet-mapping>
41
                <servlet-name>AxisServlet</servlet-name>
42
                <url-pattern>/servlet/AxisServlet</url-pattern>
43
        </servlet-mapping>
44
        <servlet-mapping>
45
                <servlet-name>AxisServlet</servlet-name>
46
                <url-pattern>*.jws</url-pattern>
47
        </servlet-mapping>
48
        <servlet-mapping>
49
                <servlet-name>AxisServlet</servlet-name>
50
                <url-pattern>/services/*</url-pattern>
51
        </servlet-mapping>
52
        <!--
53
        <servlet>
54
                <display-name>Axis Admin Servlet</display-name>
55
                <servlet-name>AdminServlet</servlet-name>
56
                <servlet-class>org.apache.axis.transport.http.AdminServlet</servlet-class>
57
        </servlet>
58
        <servlet-mapping>
59
                <servlet-name>AdminServlet</servlet-name>
60
                <url-pattern>/servlet/AdminServlet</url-pattern>
61
        </servlet-mapping>
62
        -->
63
        <session-config>
64
                <session-timeout>60</session-timeout>
65
        </session-config>
66 107:63dd8c2cdfa8 hadi
        <security-constraint id="UPassRootSecurityConstraint">
67
                <web-resource-collection id="UPassRootWebResourceCollection">
68
                        <web-resource-name>Jersey Web Application</web-resource-name>
69
                        <description>Protection area for a particular method of the Rest Servlet</description>
70
                        <url-pattern>/rest/MaybankFacade/generateUUID</url-pattern>
71
                        <http-method>GET</http-method>
72
                        <!--
73
                         <http-method>POST</http-method>
74
                        <http-method>PUT</http-method>
75
                         -->
76
                </web-resource-collection>
77
                <auth-constraint id="UPassRootAuthConstraint">
78
                        <description>Root Role for a particular method of this rest servlet</description>
79
                        <role-name>UPassRoot</role-name>
80
                </auth-constraint>
81
                <user-data-constraint id="UPassRootUserDataConstraint">
82
                        <transport-guarantee>CONFIDENTIAL</transport-guarantee>
83
                </user-data-constraint>
84
        </security-constraint>
85
<!-- Used Annotation instead.
86
         <security-role id="UPassRootSecurityRole">
87
                <description>This Role is used to drive authentication</description>
88
                <role-name>UPassRoot</role-name>
89
        </security-role>
90
         -->
91 50:0a34b4a7fa41 hadi
</web-app>