Package javax.portlet

Examples of javax.portlet.ResourceResponse.reset()


  private void sendAjaxViewExpired(FacesContext facesContext, Exception e) {
      ResourceResponse response = (ResourceResponse) facesContext
              .getExternalContext().getResponse();
      try {
        response.reset();
        String message;
        try {
          ResourceBundle resourceBundle = ResourceBundle
                  .getBundle("org.ajax4jsf.messages",
                          facesContext.getApplication()
View Full Code Here


        String filename = new StringBuilder(type).append("_").append(safeName).append("_").append(getTimestamp()).append(".zip").toString();

        ResourceResponse response = (ResourceResponse) FacesContext.getCurrentInstance().getExternalContext().getResponse();

        response.reset();
        response.setContentType("application/zip");
        response.setProperty("Content-disposition", "attachment; filename=\"" + filename + "\"");

        ManagementController controller = (ManagementController) PortalContainer.getComponent(ManagementController.class);
        PathAddress address = PathAddress.pathAddress("mop", type + "sites", name);
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.