diff options
author | Ade Lee <alee@redhat.com> | 2012-04-13 13:51:32 -0400 |
---|---|---|
committer | Ade Lee <alee@redhat.com> | 2012-05-01 17:22:38 -0400 |
commit | 80aff97bedf8c2ee5f58209f36f18ebbc475ccb1 (patch) | |
tree | 7a4e6a79f0e29c0596c81aaef47009d66cb56ccf /base/tks | |
parent | dd566ed3c64a69801a9edf3b27f11077aa40ecef (diff) | |
download | pki-80aff97bedf8c2ee5f58209f36f18ebbc475ccb1.tar.gz pki-80aff97bedf8c2ee5f58209f36f18ebbc475ccb1.tar.xz pki-80aff97bedf8c2ee5f58209f36f18ebbc475ccb1.zip |
RESTful servlet to configure system in a single servlet.
Installation code common to the panels and the installation servlet are extracted to a
ConfigurationUtils file. The panel code will be cleaned up to use the code in this
class in a later commit.
Contains restful client and test driver code. The test driver code should be modified
and placed in a junit/system test framework. Installation has been tested to work with
the following installations: master CA, clone CA, KRA, OCSP, TKS, subordinate CA, CA
signed by external CA (parts 1 and 2).
Ticket #155
Diffstat (limited to 'base/tks')
-rw-r--r-- | base/tks/shared/webapps/tks/WEB-INF/web.xml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/base/tks/shared/webapps/tks/WEB-INF/web.xml b/base/tks/shared/webapps/tks/WEB-INF/web.xml index 28276fda0..c3f7593c2 100644 --- a/base/tks/shared/webapps/tks/WEB-INF/web.xml +++ b/base/tks/shared/webapps/tks/WEB-INF/web.xml @@ -338,6 +338,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> @@ -361,6 +383,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> tksstart </servlet-name> <url-pattern> /start </url-pattern> </servlet-mapping> |