in source/src/main/java/com/amazonaws/comprehend/esproxy/lambda/utils/HTTPTransformer.java [61:71]
public static String transformHttpEntityToString(final HttpEntity entity)
throws InternalErrorException {
if (entity == null) {
throw new InternalErrorException(CustomerMessage.INPUT_NULL_OR_EMPTY_ERROR);
}
try {
return EntityUtils.toString(entity);
} catch (IOException e) {
throw new InternalErrorException(CustomerMessage.INTERNAL_ERROR, e);
}
}