| <?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 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"> |
| |
| <display-name>Jersey Skeleton app</display-name> |
| |
| <context-param> |
| <param-name>contextConfigLocation</param-name> |
| <param-value>classpath:/jersey2skeleton-context.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>jersey2skeleton</filter-name> |
| <filter-class>org.glassfish.jersey.servlet.ServletContainer</filter-class> |
| |
| <init-param> |
| <param-name>jersey.config.servlet.filter.contextPath</param-name> |
| <param-value>/</param-value> |
| </init-param> |
| |
| <init-param> |
| <param-name>jersey.config.server.provider.packages</param-name> |
| <param-value>org.apache.usergrid.testapp</param-value> |
| </init-param> |
| |
| <init-param> |
| <param-name>jersey.config.server.provider.scanning.recursive</param-name> |
| <param-value>true</param-value> |
| </init-param> |
| |
| <init-param> |
| <param-name>jersey.config.server.provider.classnames</param-name> |
| <param-value> |
| org.apache.usergrid.testapp.SecuredResourceFilterFactory, |
| org.glassfish.jersey.server.mvc.jsp.JspMvcFeature, |
| org.glassfish.jersey.media.multipart.MultiPartFeature |
| |
| <!-- TODO: someday use @PermitAll, @DenyAll, @RolesAllowed --> |
| <!-- , org.glassfish.jersey.server.filter.RolesAllowedDynamicFeature --> |
| </param-value> |
| </init-param> |
| |
| <init-param> |
| <param-name>jersey.config.server.mvc.templateBasePath.jsp</param-name> |
| <param-value>/WEB-INF/jsp</param-value> |
| </init-param> |
| |
| <init-param> |
| <param-name>jersey.config.server.wadl.disableWadl</param-name> |
| <param-value>true</param-value> |
| </init-param> |
| |
| <init-param> |
| <param-name>jersey.config.servlet.filter.staticContentRegex</param-name> |
| <param-value>/(((images|css|js|jsp|WEB-INF/jsp)/.*)|(favicon\.ico))</param-value> |
| </init-param> |
| |
| <init-param> |
| <param-name>jersey.config.server.mediaTypeMappings</param-name> |
| <param-value>json:application/json,js:application/javascript</param-value> |
| </init-param> |
| |
| </filter> |
| |
| <filter-mapping> |
| <filter-name>jersey2skeleton</filter-name> |
| <url-pattern>/*</url-pattern> |
| </filter-mapping> |
| |
| </web-app> |