1 | <?xml version="1.0" encoding="UTF-8"?> |
---|
2 | |
---|
3 | <!-- |
---|
4 | /** |
---|
5 | * MailArchiver is an application that provides services for storing and managing e-mail messages through a Web Services SOAP interface. |
---|
6 | * Copyright (C) 2012 Marcio Andre Scholl Levien and Fernando Alberto Reuter Wendt and Jose Ronaldo Nogueira Fonseca Junior |
---|
7 | * |
---|
8 | * This program is free software: you can redistribute it and/or modify |
---|
9 | * it under the terms of the GNU Affero General Public License as |
---|
10 | * published by the Free Software Foundation, either version 3 of the |
---|
11 | * License, or (at your option) any later version. |
---|
12 | * |
---|
13 | * This program is distributed in the hope that it will be useful, |
---|
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
16 | * GNU Affero General Public License for more details. |
---|
17 | * |
---|
18 | * You should have received a copy of the GNU Affero General Public License |
---|
19 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
---|
20 | */ |
---|
21 | |
---|
22 | /******************************************************************************\ |
---|
23 | * |
---|
24 | * This product was developed by |
---|
25 | * |
---|
26 | * SERVIÃO FEDERAL DE PROCESSAMENTO DE DADOS (SERPRO), |
---|
27 | * |
---|
28 | * a government company established under Brazilian law (5.615/70), |
---|
29 | * at Department of Development of Porto Alegre. |
---|
30 | * |
---|
31 | \******************************************************************************/ |
---|
32 | --> |
---|
33 | |
---|
34 | <web-app> |
---|
35 | |
---|
36 | <context-param> |
---|
37 | <param-name>locatorFactorySelector</param-name> |
---|
38 | <param-value>classpath:/serpro/mailarchiver/config/beanRefContext.xml</param-value> |
---|
39 | </context-param> |
---|
40 | |
---|
41 | <context-param> |
---|
42 | <param-name>parentContextKey</param-name> |
---|
43 | <param-value>global.context</param-value> |
---|
44 | </context-param> |
---|
45 | |
---|
46 | <context-param> |
---|
47 | <param-name>contextConfigLocation</param-name> |
---|
48 | <param-value>WEB-INF/context-beans.xml</param-value> |
---|
49 | </context-param> |
---|
50 | |
---|
51 | <listener> |
---|
52 | <listener-class> |
---|
53 | org.springframework.web.context.ContextLoaderListener |
---|
54 | </listener-class> |
---|
55 | </listener> |
---|
56 | |
---|
57 | <servlet> |
---|
58 | <servlet-name>CXFServlet</servlet-name> |
---|
59 | <display-name>CXF Servlet</display-name> |
---|
60 | <servlet-class> |
---|
61 | org.apache.cxf.transport.servlet.CXFServlet |
---|
62 | </servlet-class> |
---|
63 | <load-on-startup>1</load-on-startup> |
---|
64 | </servlet> |
---|
65 | |
---|
66 | <servlet-mapping> |
---|
67 | <servlet-name>CXFServlet</servlet-name> |
---|
68 | <url-pattern>/*</url-pattern> |
---|
69 | </servlet-mapping> |
---|
70 | |
---|
71 | <servlet> |
---|
72 | <servlet-name>importServlet</servlet-name> |
---|
73 | <display-name>Import Servlet</display-name> |
---|
74 | <servlet-class> |
---|
75 | serpro.mailarchiver.util.ImportServlet |
---|
76 | </servlet-class> |
---|
77 | <load-on-startup>1</load-on-startup> |
---|
78 | </servlet> |
---|
79 | |
---|
80 | <servlet-mapping> |
---|
81 | <servlet-name>importServlet</servlet-name> |
---|
82 | <url-pattern>/import</url-pattern> |
---|
83 | </servlet-mapping> |
---|
84 | |
---|
85 | <filter> |
---|
86 | <filter-name>multipart</filter-name> |
---|
87 | <filter-class> |
---|
88 | org.eclipse.jetty.servlets.MultiPartFilter |
---|
89 | </filter-class> |
---|
90 | <init-param> |
---|
91 | <param-name>deleteFiles</param-name> |
---|
92 | <param-value>true</param-value> |
---|
93 | </init-param> |
---|
94 | </filter> |
---|
95 | |
---|
96 | <filter-mapping> |
---|
97 | <filter-name>multipart</filter-name> |
---|
98 | <url-pattern>/import</url-pattern> |
---|
99 | </filter-mapping> |
---|
100 | |
---|
101 | <filter> |
---|
102 | <filter-name>cross-origin</filter-name> |
---|
103 | <filter-class> |
---|
104 | org.eclipse.jetty.servlets.CrossOriginFilter |
---|
105 | </filter-class> |
---|
106 | <init-param> |
---|
107 | <param-name>allowCredentials</param-name> |
---|
108 | <param-value>true</param-value> |
---|
109 | </init-param> |
---|
110 | <init-param> |
---|
111 | <param-name>allowedHeaders</param-name> |
---|
112 | <param-value>content-type,messagetype,soapaction</param-value> |
---|
113 | </init-param> |
---|
114 | </filter> |
---|
115 | |
---|
116 | <filter-mapping> |
---|
117 | <filter-name>cross-origin</filter-name> |
---|
118 | <url-pattern>/*</url-pattern> |
---|
119 | </filter-mapping> |
---|
120 | |
---|
121 | </web-app> |
---|