io.github.pmckeown.rest.model.ResponseWithOptionalBody Maven / Gradle / Ivy
package io.github.pmckeown.rest.model;
import java.util.Optional;
/**
* Wrapper for the Get APIs with response bodies
*
* @author Paul McKeown
*/
public class ResponseWithOptionalBody extends Response {
private final Optional body;
public ResponseWithOptionalBody(int status, String statusText, boolean success, Optional body) {
super(status, statusText, success);
this.body = body;
}
public Optional getBody() {
return this.body;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy