71 lines
1.2 KiB
Java
71 lines
1.2 KiB
Java
package org.gcube.data_catalogue.grsf_publish_ws.json.output;
|
|
|
|
import java.io.Serializable;
|
|
|
|
/**
|
|
* Response bean
|
|
* @author Costantino Perciante at ISTI-CNR
|
|
* (costantino.perciante@isti.cnr.it)
|
|
*
|
|
*/
|
|
public class ResponseBean implements Serializable {
|
|
|
|
private static final long serialVersionUID = -2725238162673879658L;
|
|
private boolean success;
|
|
private String message;
|
|
private Object result; // needs to be serializable!!
|
|
|
|
public ResponseBean() {
|
|
super();
|
|
}
|
|
|
|
/**
|
|
* @param success
|
|
* @param message
|
|
* @param result
|
|
* @param help
|
|
*/
|
|
public ResponseBean(boolean success, String message, Object result) {
|
|
super();
|
|
this.success = success;
|
|
this.message = message;
|
|
this.result = result;
|
|
}
|
|
|
|
|
|
public boolean isSuccess() {
|
|
return success;
|
|
}
|
|
|
|
|
|
public void setSuccess(boolean success) {
|
|
this.success = success;
|
|
}
|
|
|
|
|
|
public String getMessage() {
|
|
return message;
|
|
}
|
|
|
|
|
|
public void setMessage(String message) {
|
|
this.message = message;
|
|
}
|
|
|
|
|
|
public Object getResult() {
|
|
return result;
|
|
}
|
|
|
|
|
|
public void setResult(Object result) {
|
|
this.result = result;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "ResponseBean [success=" + success
|
|
+ ", message=" + message + ", result=" + result + "]";
|
|
}
|
|
}
|