mirror of
https://github.com/apache/struts.git
synced 2026-08-07 07:37:20 +00:00
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:
@@ -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") +
|
||||
'}';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user