| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <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"> |
| <display-name>org.apache.ranger</display-name> |
| <absolute-ordering /> |
| <welcome-file-list> |
| <welcome-file>index.html</welcome-file> |
| </welcome-file-list> |
| <context-param> |
| <param-name>contextConfigLocation</param-name> |
| <param-value>META-INF/applicationContext.xml |
| WEB-INF/classes/conf/security-applicationContext.xml |
| META-INF/scheduler-applicationContext.xml</param-value> |
| </context-param> |
| <listener> |
| <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> |
| </listener> |
| <listener> |
| <listener-class>org.springframework.web.context.request.RequestContextListener</listener-class> |
| </listener> |
| <filter> |
| <filter-name>springSecurityFilterChain</filter-name> |
| <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class> |
| </filter> |
| <filter-mapping> |
| <filter-name>springSecurityFilterChain</filter-name> |
| <url-pattern>/*</url-pattern> |
| </filter-mapping> |
| <servlet> |
| <servlet-name>REST Service</servlet-name> |
| <servlet-class>com.sun.jersey.spi.spring.container.servlet.SpringServlet</servlet-class> |
| <init-param> |
| <param-name>com.sun.jersey.config.property.packages</param-name> |
| <param-value>org.apache.ranger.rest,org.apache.ranger.common,xa.rest</param-value> |
| </init-param> |
| <init-param> |
| <param-name>com.sun.jersey.spi.container.ContainerRequestFilters</param-name> |
| <param-value>org.apache.ranger.service.filter.RangerRESTAPIFilter</param-value> |
| </init-param> |
| <init-param> |
| <param-name>com.sun.jersey.spi.container.ContainerResponseFilters</param-name> |
| <param-value>org.apache.ranger.service.filter.RangerRESTAPIFilter</param-value> |
| </init-param> |
| <init-param> |
| <param-name>com.sun.jersey.api.json.POJOMappingFeature</param-name> |
| <param-value>true</param-value> |
| </init-param> |
| <load-on-startup>1</load-on-startup> |
| </servlet> |
| <servlet-mapping> |
| <servlet-name>REST Service</servlet-name> |
| <url-pattern>/service/*</url-pattern> |
| </servlet-mapping> |
| <servlet-mapping> |
| <servlet-name>REST Service</servlet-name> |
| <url-pattern>/login/*</url-pattern> |
| </servlet-mapping> |
| <session-config> |
| <session-timeout>60</session-timeout> |
| <tracking-mode>COOKIE</tracking-mode> |
| <cookie-config> |
| <name>RANGERADMINSESSIONID</name> |
| <http-only>true</http-only> |
| </cookie-config> |
| </session-config> |
| <error-page> |
| <error-code>500</error-code> |
| <location>/public/error500.jsp</location> |
| </error-page> |
| <error-page> |
| <error-code>404</error-code> |
| <location>/public/error404.jsp</location> |
| </error-page> |
| |
| </web-app> |