ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
|
| 3 | <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">
|
| 4 | <display-name>MSO API Handler Infra</display-name>
|
Arthur Martella | 62cd6aa | 2017-09-08 13:27:46 -0400 | [diff] [blame] | 5 |
|
| 6 | <listener>
|
| 7 | <listener-class>org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap</listener-class>
|
| 8 | </listener>
|
| 9 |
|
| 10 | <context-param>
|
| 11 | <param-name>resteasy.jndi.resources</param-name>
|
| 12 | <param-value>java:module/MsoPropertiesFactory</param-value>
|
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 13 | </context-param>
|
Arthur Martella | 62cd6aa | 2017-09-08 13:27:46 -0400 | [diff] [blame] | 14 |
|
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 15 | <!-- enable the Asynchronous Job Service -->
|
| 16 | <context-param>
|
| 17 | <param-name>resteasy.async.job.service.enabled</param-name>
|
| 18 | <param-value>true</param-value>
|
| 19 | </context-param>
|
| 20 |
|
Arthur Martella | 62cd6aa | 2017-09-08 13:27:46 -0400 | [diff] [blame] | 21 | <!-- The next context parameters are all optional.
|
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 22 | Their default values are shown as example param-values -->
|
| 23 |
|
| 24 | <!-- How many jobs results can be held in memory at once? -->
|
| 25 | <context-param>
|
| 26 | <param-name>resteasy.async.job.service.max.job.results</param-name>
|
| 27 | <param-value>100</param-value>
|
| 28 | </context-param>
|
Arthur Martella | 62cd6aa | 2017-09-08 13:27:46 -0400 | [diff] [blame] | 29 |
|
| 30 | <!-- Maximum wait time on a job when a client is querying for it -->
|
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 31 | <context-param>
|
| 32 | <param-name>resteasy.async.job.service.max.wait</param-name>
|
| 33 | <param-value>300000</param-value>
|
| 34 | </context-param>
|
Arthur Martella | 62cd6aa | 2017-09-08 13:27:46 -0400 | [diff] [blame] | 35 |
|
| 36 | <context-param>
|
| 37 | <param-name>resteasy.scan</param-name>
|
| 38 | <param-value>true</param-value>
|
| 39 | </context-param>
|
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 40 |
|
| 41 | <!-- Thread pool size of background threads that run the job -->
|
| 42 | <context-param>
|
| 43 | <param-name>resteasy.async.job.service.thread.pool.size</param-name>
|
| 44 | <param-value>100</param-value>
|
| 45 | </context-param>
|
| 46 |
|
| 47 | <!-- Set the base path for the Job uris -->
|
| 48 | <context-param>
|
| 49 | <param-name>resteasy.async.job.service.base.path</param-name>
|
| 50 | <param-value>/asynch/jobs</param-value>
|
| 51 | </context-param>
|
Arthur Martella | 62cd6aa | 2017-09-08 13:27:46 -0400 | [diff] [blame] | 52 |
|
| 53 | <context-param>
|
| 54 | <param-name>log.configuration</param-name>
|
| 55 | <param-value>logback.apihandler-infra.xml</param-value>
|
| 56 | </context-param>
|
| 57 |
|
| 58 | <context-param>
|
| 59 | <param-name>mso.configuration</param-name>
|
| 60 | <param-value>MSO_PROP_APIHANDLER_INFRA=mso.apihandler-infra.properties,MSO_PROP_TOPOLOGY=topology.properties</param-value>
|
| 61 | </context-param>
|
| 62 |
|
| 63 | <context-param>
|
| 64 | <param-name>resteasy.resources</param-name>
|
| 65 | <param-value>org.openecomp.mso.logger.MsoLoggingServlet</param-value>
|
| 66 | </context-param>
|
| 67 |
|
| 68 | <servlet>
|
| 69 | <servlet-name>resteasy-servlet</servlet-name>
|
| 70 | <servlet-class>org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher</servlet-class>
|
| 71 | </servlet>
|
Determe, Sebastien (sd378r) | 94ee925 | 2017-05-02 03:53:18 -0700 | [diff] [blame] | 72 |
|
Arthur Martella | 62cd6aa | 2017-09-08 13:27:46 -0400 | [diff] [blame] | 73 | <servlet-mapping>
|
| 74 | <servlet-name>resteasy-servlet</servlet-name>
|
| 75 | <url-pattern>/serviceInstances/*</url-pattern>
|
| 76 | <url-pattern>/orchestrationRequests/*</url-pattern>
|
| 77 | <url-pattern>/nodehealthcheck</url-pattern>
|
| 78 | <url-pattern>/v1/*</url-pattern>
|
| 79 | <url-pattern>/v2/*</url-pattern>
|
| 80 | <url-pattern>/v3/*</url-pattern>
|
| 81 | <url-pattern>/logging/*</url-pattern>
|
| 82 | <url-pattern>/globalhealthcheck/*</url-pattern>
|
| 83 | <url-pattern>/healthcheck/*</url-pattern>
|
| 84 | <url-pattern>/setStatus/*</url-pattern>
|
| 85 | <url-pattern>/properties/*</url-pattern>
|
| 86 | <url-pattern>/api-docs/*</url-pattern>
|
| 87 | <url-pattern>/tasks/*</url-pattern>
|
Seshu-Kumar-M | 0df37ac | 2017-09-21 09:38:10 +0530 | [diff] [blame] | 88 | <url-pattern>/e2eServiceInstances/*</url-pattern>
|
Arthur Martella | 62cd6aa | 2017-09-08 13:27:46 -0400 | [diff] [blame] | 89 | </servlet-mapping>
|
| 90 |
|
| 91 | <!-- To be replaced by AAF in the future, when Camunda scripts replacing the BPEL scripts completely -->
|
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 92 | <security-constraint>
|
| 93 | <web-resource-collection>
|
| 94 | <web-resource-name>HealthcheckNoAuth</web-resource-name>
|
| 95 | <description>No Authentication for Healthcheck</description>
|
Arthur Martella | 62cd6aa | 2017-09-08 13:27:46 -0400 | [diff] [blame] | 96 | <url-pattern>/healthcheck</url-pattern>
|
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 97 | <url-pattern>/globalhealthcheck</url-pattern>
|
Arthur Martella | 62cd6aa | 2017-09-08 13:27:46 -0400 | [diff] [blame] | 98 | <url-pattern>/nodehealthcheck</url-pattern>
|
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 99 | <http-method>GET</http-method>
|
| 100 | <http-method>POST</http-method>
|
| 101 | </web-resource-collection>
|
| 102 | </security-constraint>
|
| 103 | <security-constraint>
|
| 104 | <web-resource-collection>
|
| 105 | <web-resource-name>SiteStatus</web-resource-name>
|
| 106 | <description>SiteStatus APIs</description>
|
| 107 | <url-pattern>/setStatus/*</url-pattern>
|
| 108 | <http-method>POST</http-method>
|
| 109 | </web-resource-collection>
|
| 110 | <auth-constraint>
|
| 111 | <role-name>SiteControl-Client</role-name>
|
| 112 | </auth-constraint>
|
| 113 | </security-constraint>
|
Arthur Martella | 62cd6aa | 2017-09-08 13:27:46 -0400 | [diff] [blame] | 114 | <security-constraint>
|
| 115 | <web-resource-collection>
|
| 116 | <web-resource-name>MSO internal Requests</web-resource-name>
|
Determe, Sebastien (sd378r) | 94ee925 | 2017-05-02 03:53:18 -0700 | [diff] [blame] | 117 | <description>Internal Requests</description>
|
| 118 | <url-pattern>/logging/*</url-pattern>
|
| 119 | <url-pattern>/properties/*</url-pattern>
|
| 120 | <http-method>POST</http-method>
|
| 121 | <http-method>GET</http-method>
|
| 122 | </web-resource-collection>
|
| 123 | <auth-constraint>
|
| 124 | <role-name>MSO-Client</role-name>
|
| 125 | </auth-constraint>
|
| 126 | </security-constraint>
|
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 127 | <security-constraint>
|
| 128 | <web-resource-collection>
|
| 129 | <web-resource-name>HTTPBasicAuth</web-resource-name>
|
| 130 | <description>Authentication for Infra Portal</description>
|
| 131 | <url-pattern>/*</url-pattern>
|
| 132 | <http-method>POST</http-method>
|
| 133 | <http-method>GET</http-method>
|
| 134 | </web-resource-collection>
|
| 135 | <auth-constraint>
|
| 136 | <role-name>InfraPortal-Client</role-name>
|
| 137 | </auth-constraint>
|
| 138 | </security-constraint>
|
Arthur Martella | 62cd6aa | 2017-09-08 13:27:46 -0400 | [diff] [blame] | 139 |
|
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 140 | <login-config>
|
| 141 | <auth-method>BASIC</auth-method>
|
| 142 | <realm-name>ApplicationRealm</realm-name>
|
| 143 | </login-config>
|
| 144 | <security-role>
|
| 145 | <role-name>InfraPortal-Client</role-name>
|
| 146 | </security-role>
|
| 147 | <security-role>
|
| 148 | <role-name>SiteControl-Client</role-name>
|
Arthur Martella | 62cd6aa | 2017-09-08 13:27:46 -0400 | [diff] [blame] | 149 | </security-role>
|
| 150 | <security-role>
|
Determe, Sebastien (sd378r) | 94ee925 | 2017-05-02 03:53:18 -0700 | [diff] [blame] | 151 | <role-name>MSO-Client</role-name>
|
| 152 | </security-role>
|
Arthur Martella | 62cd6aa | 2017-09-08 13:27:46 -0400 | [diff] [blame] | 153 |
|
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 154 | <filter>
|
| 155 | <filter-name>LogFilter</filter-name>
|
Determe, Sebastien (sd378r) | 94ee925 | 2017-05-02 03:53:18 -0700 | [diff] [blame] | 156 | <filter-class>org.openecomp.mso.logger.LogFilter</filter-class>
|
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 157 | </filter>
|
| 158 | <filter-mapping>
|
| 159 | <filter-name>LogFilter</filter-name>
|
| 160 | <url-pattern>/*</url-pattern>
|
Arthur Martella | 62cd6aa | 2017-09-08 13:27:46 -0400 | [diff] [blame] | 161 | </filter-mapping>
|
| 162 |
|
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 163 | </web-app>
|