* @param resp
* @param object
*/
private void sendResource(HttpServletRequest req, HttpServletResponse resp, String id)
{
Resource res = _manager.getContext().getResource(id);
if (res != null)
{
try
{
resp.setContentType(res.getType());
resp.setStatus(200, "Ok");
OutputStream out = new BufferedOutputStream(resp.getOutputStream());
FileUtils.copyStream(res.getInputStream(), out, 1024);
out.flush();
} catch (Exception e)
{
_logger.throwing(getClass().getName(), "sendResource", e);
}