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-list> |
---|
12 | <servlet> |
---|
13 | <servlet-name>Murachi</servlet-name> |
---|
14 | <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class> |
---|
15 | <init-param> |
---|
16 | <param-name>jersey.config.server.provider.packages</param-name> |
---|
17 | <param-value>ve.gob.cenditel.murachi</param-value> |
---|
18 | </init-param> |
---|
19 | <init-param> |
---|
20 | <param-name>jersey.config.server.provider.classnames</param-name> |
---|
21 | <param-value>org.glassfish.jersey.media.multipart.MultiPartFeature</param-value> |
---|
22 | </init-param> |
---|
23 | |
---|
24 | <init-param> |
---|
25 | <param-name>jersey.config.server.provider.packages</param-name> |
---|
26 | <param-value>ve.gob.cenditel.murachi;com.fasterxml.jackson.jaxrs</param-value> |
---|
27 | </init-param> |
---|
28 | |
---|
29 | <load-on-startup>1</load-on-startup> |
---|
30 | </servlet> |
---|
31 | <servlet-mapping> |
---|
32 | <servlet-name>Murachi</servlet-name> |
---|
33 | <url-pattern>/murachi/*</url-pattern> |
---|
34 | </servlet-mapping> |
---|
35 | |
---|
36 | |
---|
37 | <filter> |
---|
38 | <filter-name>CORS</filter-name> |
---|
39 | <filter-class>com.thetransactioncompany.cors.CORSFilter</filter-class> |
---|
40 | |
---|
41 | <init-param> |
---|
42 | <param-name>cors.allowOrigin</param-name> |
---|
43 | <param-value>*</param-value> |
---|
44 | </init-param> |
---|
45 | <init-param> |
---|
46 | <param-name>cors.supportsCredentials</param-name> |
---|
47 | <param-value>false</param-value> |
---|
48 | </init-param> |
---|
49 | <init-param> |
---|
50 | <param-name>cors.supportedHeaders</param-name> |
---|
51 | <param-value>accept, authorization, origin</param-value> |
---|
52 | </init-param> |
---|
53 | <init-param> |
---|
54 | <param-name>cors.supportedMethods</param-name> |
---|
55 | <param-value>GET, POST, HEAD, OPTIONS</param-value> |
---|
56 | </init-param> |
---|
57 | </filter> |
---|
58 | |
---|
59 | |
---|
60 | <filter-mapping> |
---|
61 | <filter-name>CORS</filter-name> |
---|
62 | <url-pattern>/*</url-pattern> |
---|
63 | </filter-mapping> |
---|
64 | |
---|
65 | <security-constraint> |
---|
66 | <web-resource-collection> |
---|
67 | <web-resource-name>Murachi</web-resource-name> |
---|
68 | <url-pattern>/murachi/*</url-pattern> |
---|
69 | </web-resource-collection> |
---|
70 | <user-data-constraint> |
---|
71 | <transport-guarantee>CONFIDENTIAL</transport-guarantee> |
---|
72 | </user-data-constraint> |
---|
73 | </security-constraint> |
---|
74 | |
---|
75 | </web-app> |
---|