From dcee8e103a66fec9a3549ce44cf82cfc2b7e66a5 Mon Sep 17 00:00:00 2001 From: Peter Hormanns Date: Mon, 23 Jul 2012 16:15:28 +0000 Subject: [PATCH] enable xmlrpc system modul --- hsarback/conf/WEB-INF/dev-web.xml | 2 +- hsarback/conf/WEB-INF/prod-web.xml | 2 +- hsarback/conf/WEB-INF/test-web.xml | 2 +- .../de/hsadmin/remote/HSXmlRpcServlet.java | 21 +++++++++++++++++++ 4 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 hsarback/src/de/hsadmin/remote/HSXmlRpcServlet.java diff --git a/hsarback/conf/WEB-INF/dev-web.xml b/hsarback/conf/WEB-INF/dev-web.xml index 5d6cca9..5e4ad09 100644 --- a/hsarback/conf/WEB-INF/dev-web.xml +++ b/hsarback/conf/WEB-INF/dev-web.xml @@ -122,7 +122,7 @@ XmlRpcServlet - org.apache.xmlrpc.webserver.XmlRpcServlet + de.hsadmin.remote.HSXmlRpcServlet enabledForExtensions true diff --git a/hsarback/conf/WEB-INF/prod-web.xml b/hsarback/conf/WEB-INF/prod-web.xml index fc3cec1..90bd6f9 100644 --- a/hsarback/conf/WEB-INF/prod-web.xml +++ b/hsarback/conf/WEB-INF/prod-web.xml @@ -122,7 +122,7 @@ XmlRpcServlet - org.apache.xmlrpc.webserver.XmlRpcServlet + de.hsadmin.remote.HSXmlRpcServlet enabledForExtensions true diff --git a/hsarback/conf/WEB-INF/test-web.xml b/hsarback/conf/WEB-INF/test-web.xml index 65199c0..c209fb8 100644 --- a/hsarback/conf/WEB-INF/test-web.xml +++ b/hsarback/conf/WEB-INF/test-web.xml @@ -122,7 +122,7 @@ XmlRpcServlet - org.apache.xmlrpc.webserver.XmlRpcServlet + de.hsadmin.remote.HSXmlRpcServlet enabledForExtensions true diff --git a/hsarback/src/de/hsadmin/remote/HSXmlRpcServlet.java b/hsarback/src/de/hsadmin/remote/HSXmlRpcServlet.java new file mode 100644 index 0000000..30adf65 --- /dev/null +++ b/hsarback/src/de/hsadmin/remote/HSXmlRpcServlet.java @@ -0,0 +1,21 @@ +package de.hsadmin.remote; + +import org.apache.xmlrpc.XmlRpcException; +import org.apache.xmlrpc.metadata.XmlRpcSystemImpl; +import org.apache.xmlrpc.server.PropertyHandlerMapping; +import org.apache.xmlrpc.server.XmlRpcHandlerMapping; +import org.apache.xmlrpc.webserver.XmlRpcServlet; + +public class HSXmlRpcServlet extends XmlRpcServlet { + + private static final long serialVersionUID = 1L; + + @Override + protected XmlRpcHandlerMapping newXmlRpcHandlerMapping() + throws XmlRpcException { + XmlRpcHandlerMapping handlerMapping = super.newXmlRpcHandlerMapping(); + XmlRpcSystemImpl.addSystemHandler((PropertyHandlerMapping) handlerMapping); + return handlerMapping; + } + +}