if (ArrayUtils.isNotEmpty(capturedData)) {
data = capturedData;
}
}
HttpActionOutput output = new HttpActionOutput();
output.setStatus(status);
output.setData(data);
output.setExcepionClass(excepionClass);
output.setExceptionMessage(exceptionMessage);
Header contentEncodingHeader = entity.getContentEncoding();
if (contentEncodingHeader != null) {
output.setEncoding(contentEncodingHeader.getValue());
}
Header contentTypeHeader = entity.getContentType();
if (contentTypeHeader != null) {
output.setType(contentTypeHeader.getValue());
}
return output;
}