| <!-- |
| Licensed 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. See accompanying LICENSE file. |
| --> |
| <web-app version="3.0" 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"> |
| <servlet> |
| <servlet-name>jaxrs</servlet-name> |
| <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class> |
| <init-param> |
| <param-name>javax.ws.rs.Application</param-name> |
| <param-value>org.apache.hadoop.ozone.s3.GatewayApplication</param-value> |
| </init-param> |
| <load-on-startup>1</load-on-startup> |
| </servlet> |
| <servlet-mapping> |
| <servlet-name>jaxrs</servlet-name> |
| <url-pattern>/*</url-pattern> |
| </servlet-mapping> |
| <filter> |
| <filter-name>optional-content-type</filter-name> |
| <filter-class>org.apache.hadoop.ozone.s3.EmptyContentTypeFilter |
| </filter-class> |
| </filter> |
| <filter> |
| <filter-name>info-page-redirect</filter-name> |
| <filter-class>org.apache.hadoop.ozone.s3.RootPageDisplayFilter |
| </filter-class> |
| </filter> |
| <filter-mapping> |
| <filter-name>optional-content-type</filter-name> |
| <url-pattern>/*</url-pattern> |
| </filter-mapping> |
| <filter-mapping> |
| <filter-name>info-page-redirect</filter-name> |
| <url-pattern>/*</url-pattern> |
| </filter-mapping> |
| <listener> |
| <listener-class>org.jboss.weld.environment.servlet.Listener</listener-class> |
| </listener> |
| |
| |
| </web-app> |