com.greenhat.json.JSONRequestBean Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of greenhat Show documentation
Show all versions of greenhat Show documentation
Why told green-hat,because i have one~
package com.greenhat.json;
import java.util.Map;
public class JSONRequestBean {
private final String serviceId;
private final String method;
private final Object[] parameters;
private final Map properties;
public JSONRequestBean(String serviceId,String method,Object[] parameters,Map properties){
this.serviceId = serviceId;
this.method = method;
this.parameters = parameters;
this.properties = properties;
}
public JSONRequestBean(String serviceId,String method,Object[] parameters){
this(serviceId,method,parameters,null);
}
public String getServiceId() {
return serviceId;
}
public String getMethod() {
return method;
}
public Object[] getParameters() {
return parameters;
}
public Map getProperties() {
return properties;
}
public Object getProperty(String nm){
if(properties == null || properties.isEmpty()){
return null;
}
return properties.get(nm);
}
}