<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" 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_2_5.xsd">
<display-name>OpenGrok</display-name>
<description>A wicked fast source browser</description>
<context-param>
<description>Full path to the configuration file where OpenGrok can read its configuration</description>
<param-name>CONFIGURATION</param-name>
<param-value>/var/opengrok/etc/configuration.xml</param-value>
</context-param>
<context-param>
<description>An address where OpenGrok can receive new configuration</description>
<param-name>ConfigAddress</param-name>
<param-value>localhost:2424</param-value>
</context-param>
<context-param>
<description>
Directory with authorization plugins.
Default value is /plugins
(can be /var/opengrok/plugins if dataRoot is /var/opengrok/data).
</description>
<param-name>authorizationPluginDirectory</param-name>
<param-value>/var/opengrok/plugins</param-value>
</context-param>
<context-param>
<description>
Enable watching the plugin directory for changes in real time.
Suitable for development.
</description>
<param-name>enableAuthorizationWatchDog</param-name>
<param-value>false</param-value>
</context-param>
<listener>
<listener-class>org.opensolaris.opengrok.web.WebappListener</listener-class>
</listener>
<filter>
<filter-name>AuthorizationFilter</filter-name>
<filter-class>org.opensolaris.opengrok.web.AuthorizationFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>AuthorizationFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<servlet>
<display-name>Source Finder</display-name>
<servlet-name>search</servlet-name>
<jsp-file>/search.jsp</jsp-file>
<init-param>
<param-name>keepgenerated</param-name><param-value>true</param-value>
</init-param>
<init-param>
<param-name>lastEditedDisplayMode</param-name><param-value>true</param-value>
</init-param>
</servlet>
<servlet>
<servlet-name>json</servlet-name>
<servlet-class>org.opensolaris.opengrok.web.JSONSearchServlet</servlet-class>
</servlet>
<servlet>
<display-name>Source History</display-name>
<servlet-name>history</servlet-name>
<jsp-file>/history.jsp</jsp-file>
<init-param>
<param-name>keepgenerated</param-name><param-value>true</param-value>
</init-param>
</servlet>
<servlet>
<display-name>Source lister</display-name>
<servlet-name>lister</servlet-name>
<jsp-file>/list.jsp</jsp-file>
<init-param>
<param-name>keepgenerated</param-name><param-value>true</param-value>
</init-param>
</servlet>
<servlet>
<display-name>Source diffs between revisions</display-name>
<servlet-name>diff</servlet-name>
<jsp-file>/diff.jsp</jsp-file>
<init-param>
<param-name>keepgenerated</param-name><param-value>true</param-value>
</init-param>
</servlet>
<servlet>
<display-name>Shows more matching lines</display-name>
<servlet-name>more</servlet-name>
<jsp-file>/more.jsp</jsp-file>
</servlet>
<servlet>
<display-name>Source Changes in RSS format</display-name>
<servlet-name>rss</servlet-name>
<jsp-file>/rss.jsp</jsp-file>
<init-param>
<param-name>keepgenerated</param-name><param-value>true</param-value>
</init-param>
</servlet>
<servlet>
<display-name>OpenSearch link for current project</display-name>
<servlet-name>opensearch</servlet-name>
<jsp-file>/opensearch.jsp</jsp-file>
<init-param>
<param-name>keepgenerated</param-name><param-value>true</param-value>
</init-param>
</servlet>
<servlet>
<display-name>Raw Source lister</display-name>
<servlet-name>raw</servlet-name>
<jsp-file>/raw.jsp</jsp-file>
<init-param>
<param-name>keepgenerated</param-name><param-value>true</param-value>
</init-param>
</servlet>
<servlet>
<display-name>Download source</display-name>
<servlet-name>download</servlet-name>
<jsp-file>/raw.jsp</jsp-file>
<init-param>
<param-name>keepgenerated</param-name><param-value>true</param-value>
</init-param>
</servlet>
<servlet>
<display-name>Error Handler</display-name>
<servlet-name>error</servlet-name>
<jsp-file>/error.jsp</jsp-file>
<init-param>
<param-name>keepgenerated</param-name><param-value>true</param-value>
</init-param>
</servlet>
<servlet>
<display-name>File not found handler</display-name>
<servlet-name>enoent</servlet-name>
<jsp-file>/enoent.jsp</jsp-file>
<init-param>
<param-name>keepgenerated</param-name><param-value>true</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>search</servlet-name>
<url-pattern>/search</url-pattern> <!-- SEARCH_P -->
</servlet-mapping>
<servlet-mapping>
<servlet-name>json</servlet-name>
<url-pattern>/json</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>opensearch</servlet-name>
<url-pattern>/opensearch</url-pattern> <!-- SEARCH_O -->
</servlet-mapping>
<servlet-mapping>
<servlet-name>history</servlet-name>
<url-pattern>/history/*</url-pattern> <!-- HIST_L -->
</servlet-mapping>
<servlet-mapping>
<servlet-name>lister</servlet-name>
<url-pattern>/xref/*</url-pattern> <!-- XREF_P -->
</servlet-mapping>
<servlet-mapping>
<servlet-name>raw</servlet-name>
<url-pattern>/raw/*</url-pattern> <!-- RAW_P -->
</servlet-mapping>
<servlet-mapping>
<servlet-name>download</servlet-name>
<url-pattern>/download/*</url-pattern> <!-- DOWNLOAD_P -->
</servlet-mapping>
<servlet-mapping>
<servlet-name>search</servlet-name>
<url-pattern>/s</url-pattern> <!-- SEARCH_R -->
</servlet-mapping>
<servlet-mapping>
<servlet-name>diff</servlet-name>
<url-pattern>/diff/*</url-pattern> <!-- DIFF_P -->
</servlet-mapping>
<servlet-mapping>
<servlet-name>more</servlet-name>
<url-pattern>/more/*</url-pattern> <!-- MORE_P -->
</servlet-mapping>
<servlet-mapping>
<servlet-name>rss</servlet-name>
<url-pattern>/rss/*</url-pattern> <!-- RSS_P -->
</servlet-mapping>
<servlet-mapping>
<servlet-name>error</servlet-name>
<url-pattern>/error</url-pattern> <!-- ERROR -->
</servlet-mapping>
<servlet-mapping>
<servlet-name>enoent</servlet-name>
<url-pattern>/enoent</url-pattern> <!-- NOT_FOUND -->
</servlet-mapping>
<error-page>
<error-code>404</error-code>
<location>/enoent</location>
</error-page>
<error-page>
<error-code>500</error-code>
<location>/error</location>
</error-page>
<jsp-config>
<jsp-property-group>
<url-pattern>*.jsp</url-pattern>
<trim-directive-whitespaces>true</trim-directive-whitespaces>
</jsp-property-group>
</jsp-config>
</web-app>