
ca.ryangreen.apigateway.generic.GenericApiGatewayResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apigateway-generic-java-sdk Show documentation
Show all versions of apigateway-generic-java-sdk Show documentation
Simple generic Java client SDK for Amazon API Gateway endpoints
The newest version!
package ca.ryangreen.apigateway.generic;
import com.amazonaws.http.HttpResponse;
import com.amazonaws.util.IOUtils;
import java.io.IOException;
public class GenericApiGatewayResponse {
private final HttpResponse httpResponse;
private final String body;
public GenericApiGatewayResponse(HttpResponse httpResponse) throws IOException {
this.httpResponse = httpResponse;
if (httpResponse.getContent()!= null) {
this.body = IOUtils.toString(httpResponse.getContent());
} else {
this.body = null;
}
}
public HttpResponse getHttpResponse() {
return httpResponse;
}
public String getBody() {
return body;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy