Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
actually getting the resource to work via upgraded grizzly and jersey…
… libs
- Loading branch information
Showing
8 changed files
with
219 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<beans xmlns="http://www.springframework.org/schema/beans" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation=" | ||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"> | ||
|
||
<!-- Master context for the test application. --> | ||
|
||
<import resource="classpath:/spring-test/repo.xml"/> | ||
<import resource="classpath:/spring-test/rest.xml"/> | ||
<import resource="classpath:/spring-test/security.xml"/> | ||
|
||
</beans> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<web-app 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" metadata-complete="false"> | ||
|
||
<display-name>Fedora-on-ModeShape</display-name> | ||
|
||
<context-param> | ||
<param-name>contextConfigLocation</param-name> | ||
<param-value>classpath:spring-test/rest.xml; classpath:spring-test/repo.xml; classpath:spring-test/security.xml</param-value> | ||
</context-param> | ||
|
||
|
||
<!-- engaging the ModeShape REST API --> | ||
|
||
<context-param> | ||
<param-name>org.modeshape.jcr.RepositoryName</param-name> | ||
<param-value>repo</param-value> | ||
</context-param> | ||
<context-param> | ||
<param-name>org.modeshape.jcr.URL</param-name> | ||
<param-value>WEB-INF/classes/config/repository.json</param-value> | ||
</context-param> | ||
|
||
<listener> | ||
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> | ||
</listener> | ||
|
||
<!-- Required parameter for ModeShape REST - should not be modified --> | ||
<listener> | ||
<listener-class>org.modeshape.web.jcr.ModeShapeJcrDeployer</listener-class> | ||
</listener> | ||
|
||
<servlet> | ||
<servlet-name>jersey-servlet</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.fcrepo</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>jersey-servlet</servlet-name> | ||
<url-pattern>/*</url-pattern> | ||
</servlet-mapping> | ||
|
||
<filter> | ||
<filter-name>delegating-1</filter-name> | ||
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class> | ||
<init-param> | ||
<param-name>targetBeanName</param-name> | ||
<param-value>oauthFilter</param-value> | ||
</init-param> | ||
</filter> | ||
<filter> | ||
<filter-name>delegating-2</filter-name> | ||
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class> | ||
<init-param> | ||
<param-name>targetBeanName</param-name> | ||
<param-value>authNFilter</param-value> | ||
</init-param> | ||
</filter> | ||
|
||
<filter-mapping> | ||
<filter-name>delegating-1</filter-name> | ||
<url-pattern>/token</url-pattern> | ||
</filter-mapping> | ||
<filter-mapping> | ||
<filter-name>delegating-2</filter-name> | ||
<url-pattern>/authorization</url-pattern> | ||
</filter-mapping> | ||
|
||
<!-- BASIC security parameters --> | ||
<login-config> | ||
<auth-method>BASIC</auth-method> | ||
<realm-name>fcrepo</realm-name> | ||
</login-config> | ||
|
||
<security-role> | ||
<role-name>admin</role-name> | ||
</security-role> | ||
|
||
</web-app> |