use of javax.servlet.ServletInputStream in project tomee by apache.
the class ServerServlet method service.
protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
if (!activated) {
response.getWriter().write("");
return;
}
ServletInputStream in = request.getInputStream();
ServletOutputStream out = response.getOutputStream();
try {
RequestInfos.initRequestInfo(request);
ejbServer.service(in, out);
} catch (ServiceException e) {
throw new ServletException("ServerService error: " + ejbServer.getClass().getName() + " -- " + e.getMessage(), e);
} finally {
RequestInfos.clearRequestInfo();
}
}
Aggregations