resInitException.setClearErrors(true); if (isPermanent) { res.setStatus(HttpServletResponse.SC_MOVED_PERMANENTLY);
response.getOutputStream().write(imageData); CmsResourceInitException initEx = new CmsResourceInitException(CmsPdfResourceHandler.class); initEx.setClearErrors(true); throw initEx;
CmsResourceInitException resInitException = new CmsResourceInitException(getClass()); resInitException.setClearErrors(true); res.sendRedirect(redirectLink); throw resInitException;
response.getOutputStream().write(result); CmsResourceInitException initEx = new CmsResourceInitException(CmsPdfResourceHandler.class); initEx.setClearErrors(true); throw initEx;