|
| 1 | +<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 2 | + xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" |
| 3 | + version="3.0"> |
| 4 | + <display-name>SIF3InfraREST</display-name> |
| 5 | + |
| 6 | + <!-- ************ --> |
| 7 | + <!-- Jersey Setup --> |
| 8 | + <!-- ************ --> |
| 9 | + <servlet> |
| 10 | + <servlet-name>Jersey REST Service</servlet-name> |
| 11 | + <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class> |
| 12 | + <init-param> |
| 13 | + <param-name>com.sun.jersey.config.property.packages</param-name> |
| 14 | + <param-value>sif3.infra.rest.resource</param-value> |
| 15 | + </init-param> |
| 16 | + <load-on-startup>1</load-on-startup> |
| 17 | + </servlet> |
| 18 | + |
| 19 | + <!-- SIF Direct REST mapping according to SIF REST Direct Spec --> |
| 20 | + <servlet-mapping> |
| 21 | + <servlet-name>Jersey REST Service</servlet-name> |
| 22 | + <url-pattern>/sif3/*</url-pattern> |
| 23 | + </servlet-mapping> |
| 24 | + |
| 25 | + <!-- ############################################################################################ --> |
| 26 | + <!-- Enable Compression within this framework. Requires ziplet-XX in WEB-INF/lib. --> |
| 27 | + <!-- Details of usage see: https://github.com/ziplet/ziplet --> |
| 28 | + <!-- ############################################################################################ --> |
| 29 | + <filter> |
| 30 | + <filter-name>CompressingFilter</filter-name> |
| 31 | + <filter-class>com.github.ziplet.filter.compression.CompressingFilter</filter-class> |
| 32 | + <init-param> |
| 33 | + <param-name>debug</param-name> |
| 34 | + <param-value>true</param-value> |
| 35 | + </init-param> |
| 36 | + <init-param> |
| 37 | + <param-name>compressionThreshold</param-name> |
| 38 | + <param-value>0</param-value> |
| 39 | + </init-param> |
| 40 | + </filter> |
| 41 | + <filter-mapping> |
| 42 | + <filter-name>CompressingFilter</filter-name> |
| 43 | + <url-pattern>/*</url-pattern> |
| 44 | + </filter-mapping> |
| 45 | + |
| 46 | + <!-- *********************************************************************************************** --> |
| 47 | + <!-- Context listener: Used to initialise (start-up) and free (shut-down) resources of this servlet. --> |
| 48 | + <!-- *********************************************************************************************** --> |
| 49 | + <listener> |
| 50 | + <listener-class>sif3.infra.rest.web.ProviderServletContext</listener-class> |
| 51 | + </listener> |
| 52 | + |
| 53 | + <!-- ************************************************ --> |
| 54 | + <!-- Parameters to be used in Context Listener above. --> |
| 55 | + <!-- ************************************************ --> |
| 56 | + <!-- |
| 57 | + *************************************************************************************************************************** |
| 58 | + The name of the service (consumer/provider) property file to use in this deployment. |
| 59 | + Note this file will be used to identify the service ID, service type (consumer/provider), environment store etc. |
| 60 | + *************************************************************************************************************************** |
| 61 | + --> |
| 62 | + <context-param> |
| 63 | + <param-name>SERVICE_PROPERTY_FILE</param-name> |
| 64 | + <!--param-value>BrokeredSISProvider</param-value--> |
| 65 | + <param-value>StudentProvider</param-value> |
| 66 | + </context-param> |
| 67 | + |
| 68 | + |
| 69 | + <welcome-file-list> |
| 70 | + <welcome-file></welcome-file> |
| 71 | + </welcome-file-list> |
| 72 | +</web-app> |
| 73 | + |
0 commit comments