io.higgs.http.server.WrappedResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of http-s3 Show documentation
Show all versions of http-s3 Show documentation
Higgs HTTP S3 (Single Site Server)
package io.higgs.http.server;
/**
* @author Courtney Robinson
*/
public class WrappedResponse {
private final String callback;
private final Object data;
public WrappedResponse(Object data) {
this(null, data);
}
public WrappedResponse(String callback, Object data) {
this.callback = callback;
this.data = data;
}
public String callback() {
return callback;
}
public Object data() {
return data;
}
@Override
public String toString() {
return "WrappedResponse{" +
"callback='" + callback + '\'' +
", data=" + data +
'}';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy