");
sb.append(path.toString());
sb.append(" | ");
- sb.append(StringEscapeUtils.escapeHtml(map.get(path).getName()));
+ sb.append(StringEscapeUtils.escapeHtml4(map.get(path).getName()));
sb.append(" |
");
}
}
diff --git a/src/main/java/org/robotframework/remoteserver/servlet/ServerMethods.java b/src/main/java/org/robotframework/remoteserver/servlet/ServerMethods.java
index cc29c56..7f3f877 100644
--- a/src/main/java/org/robotframework/remoteserver/servlet/ServerMethods.java
+++ b/src/main/java/org/robotframework/remoteserver/servlet/ServerMethods.java
@@ -19,8 +19,8 @@
import java.util.List;
import java.util.Map;
-import org.apache.commons.lang.StringUtils;
-import org.apache.commons.lang.exception.ExceptionUtils;
+import org.apache.commons.lang3.StringUtils;
+import org.apache.commons.lang3.exception.ExceptionUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.robotframework.javalib.util.StdStreamRedirecter;
diff --git a/src/main/java/org/robotframework/remoteserver/xmlrpc/ReflectiveHandlerMapping.java b/src/main/java/org/robotframework/remoteserver/xmlrpc/ReflectiveHandlerMapping.java
index 60276d8..446ee6a 100644
--- a/src/main/java/org/robotframework/remoteserver/xmlrpc/ReflectiveHandlerMapping.java
+++ b/src/main/java/org/robotframework/remoteserver/xmlrpc/ReflectiveHandlerMapping.java
@@ -18,7 +18,6 @@
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
-
import org.apache.xmlrpc.XmlRpcException;
import org.apache.xmlrpc.server.AbstractReflectiveHandlerMapping;
@@ -26,7 +25,7 @@ public class ReflectiveHandlerMapping extends AbstractReflectiveHandlerMapping {
/**
* Removes the prefixes from all keys in this handler mapping assuming a String was used as the key and period was
- * used as a separator. Example: AccountsReceivable.Billing.getInvoice -> getInvoice
+ * used as a separator. Example: AccountsReceivable.Billing.getInvoice getInvoice
*/
@SuppressWarnings("unchecked")
public void removePrefixes() {
@@ -44,16 +43,15 @@ public void removePrefixes() {
this.handlerMap = newHandlerMap;
}
- /**
- * Adds handlers for the given object to the mapping. The handlers are build by invoking
- * {@link #registerPublicMethods(String, Class)}.
- *
- * @param pKey
- * The class key, which is passed to {@link #registerPublicMethods(String, Class)}.
- * @param pClass
- * Class, which is responsible for handling the request.
- */
- public void addHandler(String pKey, Class> pClass) throws XmlRpcException {
+ /**
+ * Adds handlers for the given object to the mapping. The handlers are build by invoking
+ * {@link #registerPublicMethods(String, Class)}.
+ *
+ * @param pKey The class key, which is passed to {@link #registerPublicMethods(String, Class)}.
+ * @param pClass Class, which is responsible for handling the request.
+ * @throws XmlRpcException If error occurs
+ */
+ public void addHandler(String pKey, Class> pClass) throws XmlRpcException {
registerPublicMethods(pKey, pClass);
}
}
diff --git a/src/main/java/org/robotframework/remoteserver/xmlrpc/TypeFactory.java b/src/main/java/org/robotframework/remoteserver/xmlrpc/TypeFactory.java
index 44bc1a2..d05a8fb 100644
--- a/src/main/java/org/robotframework/remoteserver/xmlrpc/TypeFactory.java
+++ b/src/main/java/org/robotframework/remoteserver/xmlrpc/TypeFactory.java
@@ -17,7 +17,7 @@
import java.util.List;
import java.util.Map;
-import org.apache.commons.lang.ArrayUtils;
+import org.apache.commons.lang3.ArrayUtils;
import org.apache.ws.commons.util.NamespaceContextImpl;
import org.apache.xmlrpc.common.TypeFactoryImpl;
import org.apache.xmlrpc.common.XmlRpcController;