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>
|
| 88 | </servlet-mapping>
|
| 89 |
|
| 90 | <!-- 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] | 91 | <security-constraint>
|
| 92 | <web-resource-collection>
|
| 93 | <web-resource-name>HealthcheckNoAuth</web-resource-name>
|
| 94 | <description>No Authentication for Healthcheck</description>
|
Arthur Martella | 62cd6aa | 2017-09-08 13:27:46 -0400 | [diff] [blame^] | 95 | <url-pattern>/healthcheck</url-pattern>
|
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 96 | <url-pattern>/globalhealthcheck</url-pattern>
|
Arthur Martella | 62cd6aa | 2017-09-08 13:27:46 -0400 | [diff] [blame^] | 97 | <url-pattern>/nodehealthcheck</url-pattern>
|
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 98 | <http-method>GET</http-method>
|
| 99 | <http-method>POST</http-method>
|
| 100 | </web-resource-collection>
|
| 101 | </security-constraint>
|
| 102 | <security-constraint>
|
| 103 | <web-resource-collection>
|
| 104 | <web-resource-name>SiteStatus</web-resource-name>
|
| 105 | <description>SiteStatus APIs</description>
|
| 106 | <url-pattern>/setStatus/*</url-pattern>
|
| 107 | <http-method>POST</http-method>
|
| 108 | </web-resource-collection>
|
| 109 | <auth-constraint>
|
| 110 | <role-name>SiteControl-Client</role-name>
|
| 111 | </auth-constraint>
|
| 112 | </security-constraint>
|
Arthur Martella | 62cd6aa | 2017-09-08 13:27:46 -0400 | [diff] [blame^] | 113 | <security-constraint>
|
| 114 | <web-resource-collection>
|
| 115 | <web-resource-name>MSO internal Requests</web-resource-name>
|
Determe, Sebastien (sd378r) | 94ee925 | 2017-05-02 03:53:18 -0700 | [diff] [blame] | 116 | <description>Internal Requests</description>
|
| 117 | <url-pattern>/logging/*</url-pattern>
|
| 118 | <url-pattern>/properties/*</url-pattern>
|
| 119 | <http-method>POST</http-method>
|
| 120 | <http-method>GET</http-method>
|
| 121 | </web-resource-collection>
|
| 122 | <auth-constraint>
|
| 123 | <role-name>MSO-Client</role-name>
|
| 124 | </auth-constraint>
|
| 125 | </security-constraint>
|
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 126 | <security-constraint>
|
| 127 | <web-resource-collection>
|
| 128 | <web-resource-name>HTTPBasicAuth</web-resource-name>
|
| 129 | <description>Authentication for Infra Portal</description>
|
| 130 | <url-pattern>/*</url-pattern>
|
| 131 | <http-method>POST</http-method>
|
| 132 | <http-method>GET</http-method>
|
| 133 | </web-resource-collection>
|
| 134 | <auth-constraint>
|
| 135 | <role-name>InfraPortal-Client</role-name>
|
| 136 | </auth-constraint>
|
| 137 | </security-constraint>
|
Arthur Martella | 62cd6aa | 2017-09-08 13:27:46 -0400 | [diff] [blame^] | 138 |
|
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 139 | <login-config>
|
| 140 | <auth-method>BASIC</auth-method>
|
| 141 | <realm-name>ApplicationRealm</realm-name>
|
| 142 | </login-config>
|
| 143 | <security-role>
|
| 144 | <role-name>InfraPortal-Client</role-name>
|
| 145 | </security-role>
|
| 146 | <security-role>
|
| 147 | <role-name>SiteControl-Client</role-name>
|
Arthur Martella | 62cd6aa | 2017-09-08 13:27:46 -0400 | [diff] [blame^] | 148 | </security-role>
|
| 149 | <security-role>
|
Determe, Sebastien (sd378r) | 94ee925 | 2017-05-02 03:53:18 -0700 | [diff] [blame] | 150 | <role-name>MSO-Client</role-name>
|
| 151 | </security-role>
|
Arthur Martella | 62cd6aa | 2017-09-08 13:27:46 -0400 | [diff] [blame^] | 152 |
|
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 153 | <filter>
|
| 154 | <filter-name>LogFilter</filter-name>
|
Determe, Sebastien (sd378r) | 94ee925 | 2017-05-02 03:53:18 -0700 | [diff] [blame] | 155 | <filter-class>org.openecomp.mso.logger.LogFilter</filter-class>
|
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 156 | </filter>
|
| 157 | <filter-mapping>
|
| 158 | <filter-name>LogFilter</filter-name>
|
| 159 | <url-pattern>/*</url-pattern>
|
Arthur Martella | 62cd6aa | 2017-09-08 13:27:46 -0400 | [diff] [blame^] | 160 | </filter-mapping>
|
| 161 |
|
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 162 | </web-app>
|