1 | <?xml version="1.0" encoding="UTF-8"?> |
---|
2 | <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0"> |
---|
3 | <display-name>Murachi</display-name> |
---|
4 | <welcome-file-list> |
---|
5 | <welcome-file>index.html</welcome-file> |
---|
6 | <welcome-file>index.htm</welcome-file> |
---|
7 | <welcome-file>index.jsp</welcome-file> |
---|
8 | <welcome-file>default.html</welcome-file> |
---|
9 | <welcome-file>default.htm</welcome-file> |
---|
10 | <welcome-file>default.jsp</welcome-file> |
---|
11 | <welcome-file>pruebaFinal.html</welcome-file> |
---|
12 | </welcome-file-list> |
---|
13 | <servlet> |
---|
14 | <servlet-name>Murachi</servlet-name> |
---|
15 | <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class> |
---|
16 | <init-param> |
---|
17 | <param-name>jersey.config.server.provider.packages</param-name> |
---|
18 | <param-value>ve.gob.cenditel.murachi</param-value> |
---|
19 | </init-param> |
---|
20 | <init-param> |
---|
21 | <param-name>jersey.config.server.provider.classnames</param-name> |
---|
22 | <param-value>org.glassfish.jersey.media.multipart.MultiPartFeature</param-value> |
---|
23 | </init-param> |
---|
24 | |
---|
25 | <init-param> |
---|
26 | <param-name>jersey.config.server.provider.packages</param-name> |
---|
27 | <param-value>ve.gob.cenditel.murachi;com.fasterxml.jackson.jaxrs</param-value> |
---|
28 | </init-param> |
---|
29 | |
---|
30 | <init-param> |
---|
31 | <param-name>jersey.config.server.monitoring.statistics.mbeans.enabled</param-name> |
---|
32 | <param-value>true</param-value> |
---|
33 | </init-param> |
---|
34 | |
---|
35 | <load-on-startup>1</load-on-startup> |
---|
36 | </servlet> |
---|
37 | <servlet-mapping> |
---|
38 | <servlet-name>Murachi</servlet-name> |
---|
39 | <!-- <url-pattern>/murachi/*</url-pattern> --> |
---|
40 | <url-pattern>/0.4/*</url-pattern> |
---|
41 | </servlet-mapping> |
---|
42 | |
---|
43 | <filter> |
---|
44 | <!-- The CORS filter with parameters --> |
---|
45 | <filter-name>CORS</filter-name> |
---|
46 | <filter-class>com.thetransactioncompany.cors.CORSFilter</filter-class> |
---|
47 | |
---|
48 | <!-- Note: All parameters are options, if omitted the CORS |
---|
49 | Filter will fall back to the respective default values. |
---|
50 | --> |
---|
51 | <init-param> |
---|
52 | <param-name>cors.allowGenericHttpRequests</param-name> |
---|
53 | <param-value>true</param-value> |
---|
54 | </init-param> |
---|
55 | |
---|
56 | <init-param> |
---|
57 | <param-name>cors.allowOrigin</param-name> |
---|
58 | <param-value>*</param-value> |
---|
59 | </init-param> |
---|
60 | |
---|
61 | <init-param> |
---|
62 | <param-name>cors.allowSubdomains</param-name> |
---|
63 | <param-value>false</param-value> |
---|
64 | </init-param> |
---|
65 | |
---|
66 | <init-param> |
---|
67 | <param-name>cors.supportedMethods</param-name> |
---|
68 | <param-value>GET, HEAD, POST, OPTIONS</param-value> |
---|
69 | </init-param> |
---|
70 | |
---|
71 | <init-param> |
---|
72 | <param-name>cors.supportedHeaders</param-name> |
---|
73 | <param-value>*</param-value> |
---|
74 | </init-param> |
---|
75 | |
---|
76 | <init-param> |
---|
77 | <param-name>cors.exposedHeaders</param-name> |
---|
78 | <param-value>X-Test-1, X-Test-2</param-value> |
---|
79 | </init-param> |
---|
80 | |
---|
81 | <init-param> |
---|
82 | <param-name>cors.supportsCredentials</param-name> |
---|
83 | <param-value>true</param-value> |
---|
84 | </init-param> |
---|
85 | |
---|
86 | <init-param> |
---|
87 | <param-name>cors.maxAge</param-name> |
---|
88 | <param-value>3600</param-value> |
---|
89 | </init-param> |
---|
90 | |
---|
91 | </filter> |
---|
92 | |
---|
93 | <filter-mapping> |
---|
94 | <!-- CORS Filter mapping --> |
---|
95 | <filter-name>CORS</filter-name> |
---|
96 | <url-pattern>/*</url-pattern> |
---|
97 | </filter-mapping> |
---|
98 | |
---|
99 | |
---|
100 | |
---|
101 | <security-constraint> |
---|
102 | <web-resource-collection> |
---|
103 | <web-resource-name>Murachi</web-resource-name> |
---|
104 | <url-pattern>/Murachi/*</url-pattern> |
---|
105 | </web-resource-collection> |
---|
106 | <user-data-constraint> |
---|
107 | <transport-guarantee>CONFIDENTIAL</transport-guarantee> |
---|
108 | </user-data-constraint> |
---|
109 | </security-constraint> |
---|
110 | |
---|
111 | </web-app> |
---|