Adds toString() to simplify debugging process

git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1487417 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Lukasz Lenart
2013-05-29 09:15:40 +00:00
parent f6a07e63e6
commit 4aca911cb0
@@ -21,10 +21,10 @@
package org.apache.struts2.dispatcher.mapper;
import java.util.Map;
import com.opensymphony.xwork2.Result;
import java.util.Map;
/**
* Simple class that holds the action mapping information used to invoke a
* Struts action. The name and namespace are required, but the params map
@@ -157,4 +157,17 @@ public class ActionMapping {
public void setExtension(String extension) {
this.extension = extension;
}
@Override
public String toString() {
return "ActionMapping{" +
"name='" + name + '\'' +
", namespace='" + namespace + '\'' +
", method='" + method + '\'' +
", extension='" + extension + '\'' +
", params=" + params +
", result=" + (result != null ? result.getClass().getName() : "null") +
'}';
}
}