<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
         version="3.1">

  <context-param>
     <param-name>com.epimorphics.api.initialSpecFile</param-name>
     <param-value>oc::specs/oc.ttl</param-value>
  </context-param>

  <filter>
    <filter-name>Jersey Web Application</filter-name>
    <filter-class>org.glassfish.jersey.servlet.ServletContainer</filter-class>
    <init-param>
      <param-name>jersey.config.property.packages</param-name>
      <param-value>com.epimorphics.lda.restlets</param-value>
    </init-param>
    <init-param>
      <param-name>jersey.config.servlet.filter.forwardOn404</param-name>
      <param-value>true</param-value>
    </init-param>
    <init-param>
      <param-name>jersey.spi.container.ContainerRequestFilters</param-name>
      <param-value>org.glassfish.jersey.api.container.filter.PostReplaceFilter</param-value>
    </init-param>
  </filter>

  <filter-mapping>
    <filter-name>Jersey Web Application</filter-name>
    <url-pattern>/api-config/*</url-pattern>
    <url-pattern>/control/*</url-pattern>
    <url-pattern>/oc/*</url-pattern>
  </filter-mapping>

  <servlet-mapping>
    <servlet-name>default</servlet-name>
    <url-pattern>/velocity/*</url-pattern>
    <url-pattern>/css/*</url-pattern>
    <url-pattern>/data/*</url-pattern>
    <url-pattern>/images/*</url-pattern>
    <url-pattern>/scripts/*</url-pattern>
    <url-pattern>/specs/*</url-pattern>
    <url-pattern>/xslt/*</url-pattern>
    <url-pattern>/_error_pages/*</url-pattern>
  </servlet-mapping>

  <listener>
    <listener-class>com.epimorphics.lda.restlets.RouterRestlet$Init</listener-class>
  </listener>

  <welcome-file-list>
    <welcome-file>index.html</welcome-file>
  </welcome-file-list>
</web-app>
