Package org.apache.wicket.request.resource

Examples of org.apache.wicket.request.resource.ResourceStreamResource.respond()


      requestCycle.getResponse());

    ResourceStreamResource resource = new ResourceStreamResource(resourceStream);
    resource.setFileName(fileName);
    resource.setContentDisposition(contentDisposition);
    resource.respond(attributes);
  }

  /**
   * @param fileName
   *            Optional filename, used to set the content disposition header. Only meaningful
View Full Code Here


      ResourceStreamResource resource = new ResourceStreamResource(xlsStream);
      resource.setFileName(filename);
      resource.setContentDisposition(ContentDisposition.ATTACHMENT);
      IResource.Attributes a = new IResource.Attributes(requestCycle.getRequest(),
        requestCycle.getResponse());
      resource.respond(a);
    }
    catch (Exception e)
    {
      throw new RuntimeException("Error while generating a xls file to table component", e);
    }
View Full Code Here

      ResourceStreamResource resource = new ResourceStreamResource(xlsStream);
      resource.setFileName(filename);
      resource.setContentDisposition(ContentDisposition.ATTACHMENT);
      IResource.Attributes a = new IResource.Attributes(requestCycle.getRequest(),
        requestCycle.getResponse());
      resource.respond(a);
    }
    catch (Exception e)
    {
      throw new RuntimeException("Error while generating a xls file to table component", e);
    }
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.