1 package com.opensymphony.webwork.dispatcher.mapper; 2 3 import java.util.Map ; 4 5 13 public class ActionMapping { 14 private String name; 15 private String namespace; 16 private String method; 17 private Map params; 18 19 public ActionMapping(String name, String namespace, String method, Map params) { 20 this.name = name; 21 this.namespace = namespace; 22 this.method = method; 23 this.params = params; 24 } 25 26 public String getName() { 27 return name; 28 } 29 30 public String getNamespace() { 31 return namespace; 32 } 33 34 public Map getParams() { 35 return params; 36 } 37 38 public String getMethod() { 39 if (null != method && "".equals(method)) { 40 return null; 41 } else { 42 return method; 43 } 44 } 45 } 46 | Popular Tags |