br.com.andrewribeiro.ribrest.services.Result Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Ribrest Show documentation
Show all versions of Ribrest Show documentation
Ribrest Framework - A simple Java framework that truly improve your productivity when developing restful based webservices.
package br.com.andrewribeiro.ribrest.services;
import javax.ws.rs.core.Response;
import br.com.andrewribeiro.ribrest.services.holder.interfaces.Holder;
/**
*
* @author Andrew Ribeiro
*/
public class Result {
public Result() {
this.status = Response.Status.OK;
}
public Result(Response.Status status, String cause, Holder holder) {
this.status = status;
this.cause = cause;
this.holder = holder;
}
public Result(Response.Status status, String cause) {
this.status = status;
this.cause = cause;
}
private Response.Status status;
private String cause;
private Holder holder;
public Response.Status getStatus() {
return status;
}
public void setStatus(Response.Status status) {
this.status = status;
}
public String getCause() {
return cause;
}
public void setCause(String cause) {
this.cause = cause;
}
public Holder getHolder() {
return holder;
}
public void setHolder(Holder holder) {
this.holder = holder;
}
}