Code Coverage, Auth ID, Docker
[music.git] / WebContent / WEB-INF / web.xml
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>MUSIC</display-name>
4     <servlet>
5                 <servlet-name>music-servlet</servlet-name>
6                 <servlet-class>
7                      com.sun.jersey.spi.container.servlet.ServletContainer
8         </servlet-class>
9         <!-- this enables jersey jackson logging.   
10         <init-param>
11                         <param-name>com.sun.jersey.spi.container.ContainerRequestFilters</param-name>
12                         <param-value>com.sun.jersey.api.container.filter.LoggingFilter</param-value>
13                 </init-param> 
14                 -->    
15                 <init-param>
16                      <param-name>com.sun.jersey.config.property.packages</param-name>
17                      <param-value>
18                         io.swagger.jaxrs.json,
19                 io.swagger.jaxrs.listing,
20                 org.onap.music.rest,
21                 org.onap.music.exceptions
22                      </param-value>
23                 </init-param>
24                 <init-param>
25                      <param-name>com.sun.jersey.api.json.POJOMappingFeature</param-name>
26                      <param-value>true</param-value>
27             </init-param>
28                 <load-on-startup>1</load-on-startup>
29
30   </servlet>
31
32         <servlet>
33         <servlet-name>Jersey2Config</servlet-name>
34         <servlet-class>io.swagger.jaxrs.config.DefaultJaxrsConfig</servlet-class>
35         <init-param>
36             <param-name>api.version</param-name>
37             <param-value>1.0.0</param-value>
38         </init-param>
39         <init-param>
40             <param-name>swagger.api.basepath</param-name>
41             <param-value>http://localhost:8080/MUSIC/rest</param-value>
42         </init-param>
43         <load-on-startup>2</load-on-startup>
44     </servlet>
45
46   
47         <servlet-mapping>
48                 <servlet-name>music-servlet</servlet-name>
49                 <url-pattern>/rest/*</url-pattern>
50         </servlet-mapping>
51   
52   <welcome-file-list>
53     <welcome-file>index.html</welcome-file>
54     <welcome-file>index.htm</welcome-file>
55     <welcome-file>index.jsp</welcome-file>
56     <welcome-file>default.html</welcome-file>
57     <welcome-file>default.htm</welcome-file>
58     <welcome-file>default.jsp</welcome-file>
59   </welcome-file-list>
60 </web-app>
61 <!-- 
62  ============LICENSE_START==========================================
63  org.onap.music
64  ===================================================================
65   Copyright (c) 2017 AT&T Intellectual Property
66  ===================================================================
67   Licensed under the Apache License, Version 2.0 (the "License");
68   you may not use this file except in compliance with the License.
69   You may obtain a copy of the License at
70  
71      http://www.apache.org/licenses/LICENSE-2.0
72  
73   Unless required by applicable law or agreed to in writing, software
74   distributed under the License is distributed on an "AS IS" BASIS,
75   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
76   See the License for the specific language governing permissions and
77   limitations under the License.
78  
79  ============LICENSE_END=============================================
80  ====================================================================
81 -->