docs/docs-web/src/main/webapp/WEB-INF/web.xml

59 lines
2.0 KiB
XML
Raw Normal View History

2013-07-27 18:33:20 +02:00
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="docs"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
version="3.0">
2013-07-27 18:33:20 +02:00
<display-name>Docs</display-name>
2013-08-20 21:51:07 +02:00
2015-09-07 21:51:13 +02:00
<!-- This filter is used to process a couple things in the request context -->
2013-07-27 18:33:20 +02:00
<filter>
<filter-name>requestContextFilter</filter-name>
<filter-class>com.sismics.util.filter.RequestContextFilter</filter-class>
2015-09-07 21:51:13 +02:00
<async-supported>true</async-supported>
2013-07-27 18:33:20 +02:00
</filter>
<filter-mapping>
<filter-name>requestContextFilter</filter-name>
<url-pattern>/api/*</url-pattern>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>
<!-- This filter is used to secure URLs -->
<filter>
<filter-name>tokenBasedSecurityFilter</filter-name>
<filter-class>com.sismics.util.filter.TokenBasedSecurityFilter</filter-class>
2015-09-07 21:51:13 +02:00
<async-supported>true</async-supported>
2013-07-27 18:33:20 +02:00
</filter>
<filter-mapping>
<filter-name>tokenBasedSecurityFilter</filter-name>
<url-pattern>/api/*</url-pattern>
</filter-mapping>
<!-- Jersey -->
<servlet>
2015-09-07 21:51:13 +02:00
<servlet-name>JerseyServlet</servlet-name>
<servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>
2013-07-27 18:33:20 +02:00
<init-param>
2015-09-07 21:51:13 +02:00
<param-name>jersey.config.server.provider.packages</param-name>
2013-07-27 18:33:20 +02:00
<param-value>com.sismics.docs.rest.resource</param-value>
</init-param>
2015-09-07 21:51:13 +02:00
<init-param>
<param-name>jersey.config.server.provider.classnames</param-name>
<param-value>org.glassfish.jersey.media.multipart.MultiPartFeature</param-value>
</init-param>
<init-param>
<param-name>jersey.config.server.response.setStatusOverSendError</param-name>
<param-value>true</param-value>
</init-param>
2013-07-27 18:33:20 +02:00
<load-on-startup>1</load-on-startup>
2015-09-07 21:51:13 +02:00
<async-supported>true</async-supported>
2013-07-27 18:33:20 +02:00
</servlet>
2015-09-07 21:51:13 +02:00
2013-07-27 18:33:20 +02:00
<servlet-mapping>
2015-09-07 21:51:13 +02:00
<servlet-name>JerseyServlet</servlet-name>
2013-07-27 18:33:20 +02:00
<url-pattern>/api/*</url-pattern>
</servlet-mapping>
</web-app>