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