httpRequest.setBodyFromStream(request.getInputStream());
for (Enumeration<String> headerNames = request.getHeaderNames(); headerNames.hasMoreElements();) {
String name = headerNames.nextElement();
for (Enumeration<String> values = request.getHeaders(name); values.hasMoreElements();) {
String value = values.nextElement();
httpRequest.addHeader(name, value);
}
}
httpRequest.setRequestInfo(getRequestInfo(request));
} catch (IOException e) {
response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);