summaryrefslogtreecommitdiffstats
path: root/pki/base/kra
diff options
context:
space:
mode:
authorAde Lee <alee@redhat.com>2011-12-12 22:57:33 -0500
committerAde Lee <alee@redhat.com>2012-01-13 16:17:17 -0500
commitdbfa1508770473ae5c27049b967abb67956c6572 (patch)
tree299b7c6f31f647336c0e5ce3ee7497ebc8da10a0 /pki/base/kra
parentf845fe269878552182bd201065ddfc3982583e50 (diff)
downloadpki-dbfa1508770473ae5c27049b967abb67956c6572.tar.gz
pki-dbfa1508770473ae5c27049b967abb67956c6572.tar.xz
pki-dbfa1508770473ae5c27049b967abb67956c6572.zip
Initial skeleton code for drm resteasy interface
Integrated files into current servlet structure. Allowed exceptions to bubble up to top level. Move bean initialization logic into DAO objects. Fixed "keyRequest" path to "keyrequest" in KeyRequestDAO
Diffstat (limited to 'pki/base/kra')
-rw-r--r--pki/base/kra/shared/webapps/kra/WEB-INF/web.xml27
1 files changed, 27 insertions, 0 deletions
diff --git a/pki/base/kra/shared/webapps/kra/WEB-INF/web.xml b/pki/base/kra/shared/webapps/kra/WEB-INF/web.xml
index fdc2779b1..4e9027acc 100644
--- a/pki/base/kra/shared/webapps/kra/WEB-INF/web.xml
+++ b/pki/base/kra/shared/webapps/kra/WEB-INF/web.xml
@@ -756,6 +756,28 @@
<param-value> ee </param-value> </init-param>
</servlet>
+ <context-param>
+ <param-name>resteasy.scan</param-name>
+ <param-value>true</param-value>
+ </context-param>
+
+ <context-param>
+ <param-name>resteasy.servlet.mapping.prefix</param-name>
+ <param-value>/pki</param-value>
+ </context-param>
+
+ <context-param>
+ <param-name>resteasy.resource.method-interceptors</param-name>
+ <param-value>
+ org.jboss.resteasy.core.ResourceMethodSecurityInterceptor
+ </param-value>
+ </context-param>
+
+ <servlet>
+ <servlet-name>Resteasy</servlet-name>
+ <servlet-class>org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher</servlet-class>
+ </servlet>
+
[PKI_OPEN_SEPARATE_PORTS_WEB_COMMENT]
<filter-mapping>
<filter-name> AgentRequestFilter </filter-name>
@@ -783,6 +805,11 @@
[PKI_CLOSE_SEPARATE_PORTS_WEB_COMMENT]
<servlet-mapping>
+ <servlet-name>Resteasy</servlet-name>
+ <url-pattern>/pki/*</url-pattern>
+ </servlet-mapping>
+
+ <servlet-mapping>
<servlet-name> kraserver </servlet-name>
<url-pattern> /server </url-pattern>
</servlet-mapping>