Examples of responseComplete()


Examples of javax.faces.context.FacesContext.responseComplete()

            "attachment;filename=\"export.xls\"");
        ServletOutputStream out = response.getOutputStream();
        HSSFWorkbook wb = (HSSFWorkbook) this.myCurrentTable.getExcelRenderer().getRendering();
        wb.write(out);
        out.flush();
        facesContext.responseComplete();

      } catch (IOException e) {
       
      }
    }
View Full Code Here

Examples of javax.faces.context.FacesContext.responseComplete()

          ServletContext servletContext = (ServletContext) context.getExternalContext().getContext();
          String contentType = servletContext.getMimeType(fileName);
          response.setContentType(contentType);
          response.setHeader("Content-Disposition", "attachment;filename=\"" + fileName + "\"");
          response.sendRedirect(goobiContentServerUrl.toString());
          context.responseComplete();
        }
        if (metsTempFile.toURI().toURL() != null) {
          File tempMets = new File(metsTempFile.toURI().toURL().toString());
          tempMets.delete();
        }
View Full Code Here

Examples of javax.faces.context.FacesContext.responseComplete()

      /*
       * -------------------------------- den Stream zurückgeben --------------------------------
       */
      out.flush();
      facesContext.responseComplete();
    }
  }

}
 
View Full Code Here

Examples of javax.faces.context.FacesContext.responseComplete()

       * -------------------------------- die txt-Datei direkt in den Stream schreiben lassen --------------------------------
       */
      out.print(getTiffAlles());

      out.flush();
      facesContext.responseComplete();
    }
  }

}
 
View Full Code Here

Examples of javax.faces.context.FacesContext.responseComplete()

                out.flush();
            } catch (IOException e) {
                logger.error("IOException while exporting run note", e);
            }

            facesContext.responseComplete();
        }
        return "";
    }

    public List<? extends DocstructElement> getDocstructs() {
View Full Code Here

Examples of javax.faces.context.FacesContext.responseComplete()

                    try {
                        response.sendError(500, "Error loading jbpm configuration: " + ex.getMessage());
                    } catch (IOException e) {
                        log.log(Level.SEVERE, "Error sending 500 response for bad jbpm configuration load", e);
                    } finally {
                        facesContext.responseComplete();
                    }
                    return;
                }
            }
        }
View Full Code Here

Examples of javax.faces.context.FacesContext.responseComplete()

                try {
                    final ProcessDefinition processDefinition = jbpmContext.getGraphSession().getProcessDefinition(id);
                    if (processDefinition == null) {
                        try {
                            response.sendError(404, "Process definition " + id + " does not exist");
                            facesContext.responseComplete();
                            break;
                        } catch (IOException e) {
                            log.log(Level.SEVERE, "Failed to send 404 Not Found to client", e);
                        }
                    }
View Full Code Here

Examples of javax.faces.context.FacesContext.responseComplete()

                        }
                    }
                    if (!processDefinition.getFileDefinition().hasFile(file)) {
                        try {
                            response.sendError(404, "Process definition " + id + " does not contain file '" + file + "'");
                            facesContext.responseComplete();
                            break;
                        } catch (IOException e) {
                            log.log(Level.SEVERE, "Failed to send 404 Not Found to client", e);
                        }
                    }
View Full Code Here

Examples of javax.faces.context.FacesContext.responseComplete()

                            }
                        }
                    } catch (IOException e) {
                        log.log(Level.SEVERE, "Failed to send process file", e);
                    }
                    facesContext.responseComplete();
                    if (log.isLoggable(Level.FINE)) {
                        log.fine("Sent process file '" + path + "'");
                    }
                    break;
                } finally {
View Full Code Here

Examples of javax.faces.context.FacesContext.responseComplete()

            pwriter.redirect(requestURI);
            pwriter.endDocument();
        } else {
            ((HttpServletResponse) response).sendRedirect(requestURI);
        }
        ctx.responseComplete();
       
    }


    /**
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.