enable xmlrpc system modul

This commit is contained in:
Peter Hormanns 2012-07-23 16:15:28 +00:00
parent 1e90d15fe2
commit dcee8e103a
4 changed files with 24 additions and 3 deletions

View File

@ -122,7 +122,7 @@
<servlet>
<servlet-name>XmlRpcServlet</servlet-name>
<servlet-class>org.apache.xmlrpc.webserver.XmlRpcServlet</servlet-class>
<servlet-class>de.hsadmin.remote.HSXmlRpcServlet</servlet-class>
<init-param>
<param-name>enabledForExtensions</param-name>
<param-value>true</param-value>

View File

@ -122,7 +122,7 @@
<servlet>
<servlet-name>XmlRpcServlet</servlet-name>
<servlet-class>org.apache.xmlrpc.webserver.XmlRpcServlet</servlet-class>
<servlet-class>de.hsadmin.remote.HSXmlRpcServlet</servlet-class>
<init-param>
<param-name>enabledForExtensions</param-name>
<param-value>true</param-value>

View File

@ -122,7 +122,7 @@
<servlet>
<servlet-name>XmlRpcServlet</servlet-name>
<servlet-class>org.apache.xmlrpc.webserver.XmlRpcServlet</servlet-class>
<servlet-class>de.hsadmin.remote.HSXmlRpcServlet</servlet-class>
<init-param>
<param-name>enabledForExtensions</param-name>
<param-value>true</param-value>

View File

@ -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;
}
}