Package ecar.action

Examples of ecar.action.IActionRequest


    public void service(HttpServletRequest request, HttpServletResponse response) {

      String classeInstanciada = request.getParameter("classeInstanciada");
      Long id = new Long(request.getParameter("idObjeto"));
      try {
        IActionRequest action = (IActionRequest) Class.forName(classeInstanciada).newInstance();
        DownloadArquivoBean bean = action.consultarArquivoDownload(id);
        response.setContentType("inline/download")
        String arquivo = "attachment;filename=" + bean.getNomeArquivo()
        response.setHeader("Content-Disposition", arquivo)
        ServletOutputStream servletOutputStream = response.getOutputStream()
        servletOutputStream.write(bean.getConteudoArquivo())
View Full Code Here

TOP

Related Classes of ecar.action.IActionRequest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.