Package org.pentaho.reporting.engine.classic.core.modules.output.table.html

Examples of org.pentaho.reporting.engine.classic.core.modules.output.table.html.FlowHtmlOutputProcessor


    {
      return new PageableHtmlOutputProcessor(report.getConfiguration());
    }
    else if ("flow".equals(exportMethod)) //$NON-NLS-1$
    {
      return new FlowHtmlOutputProcessor(report.getConfiguration());
    }
    else
    {
      return new StreamHtmlOutputProcessor(report.getConfiguration());
    }
View Full Code Here


    {
      return new PageableHtmlOutputProcessor(report.getConfiguration());
    }
    else if ("flow".equals(exportMethod)) //$NON-NLS-1$
    {
      return new FlowHtmlOutputProcessor(report.getConfiguration());
    }
    else
    {
      return new StreamHtmlOutputProcessor(report.getConfiguration());
    }
View Full Code Here

    final ZipRepository zipRepository = new ZipRepository(out);
    final ContentLocation root = zipRepository.getRoot();
    final ContentLocation data = RepositoryUtilities.createLocation
        (zipRepository, RepositoryUtilities.splitPath("data", "/"));

    final FlowHtmlOutputProcessor outputProcessor = new FlowHtmlOutputProcessor(report.getConfiguration());

    final HtmlPrinter printer = new AllItemsHtmlPrinter(report.getResourceManager());
    printer.setContentWriter(root, new DefaultNameGenerator(root, "report.html"));
    printer.setDataWriter(data, new DefaultNameGenerator(data, "content"));

    String urlPattern = getInitParameter("url-pattern");
    if (urlPattern == null)
    {
      final String requestURL = String.valueOf(request.getRequestURL());
      final int parameterStart = requestURL.indexOf('?');
      final String params = "?report.name=" +
          URLEncoder.encode(report.getTitle(), request.getCharacterEncoding()) +
          "&filename={0}";

      if (parameterStart == -1)
      {
        urlPattern = requestURL + params;
      }
      else
      {
        urlPattern = requestURL.substring(0, parameterStart) + params;
      }
    }
    printer.setUrlRewriter(new WebAppURLRewriter(urlPattern, request.getCharacterEncoding()));
    outputProcessor.setPrinter(printer);

    final FlowReportProcessor sp = new FlowReportProcessor(report, outputProcessor);
    sp.processReport();
    sp.close();
    zipRepository.close();
View Full Code Here

    {
      return new PageableHtmlOutputProcessor(report.getConfiguration());
    }
    else if ("flow".equals(exportMethod)) //$NON-NLS-1$
    {
      return new FlowHtmlOutputProcessor();
    }
    else
    {
      return new StreamHtmlOutputProcessor(report.getConfiguration());
    }
View Full Code Here

    {
      return new PageableHtmlOutputProcessor(report.getConfiguration());
    }
    else if ("flow".equals(exportMethod)) //$NON-NLS-1$
    {
      return new FlowHtmlOutputProcessor();
    }
    else
    {
      return new StreamHtmlOutputProcessor(report.getConfiguration());
    }
View Full Code Here

    final ZipRepository zipRepository = new ZipRepository(out);
    final ContentLocation root = zipRepository.getRoot();
    final ContentLocation data = RepositoryUtilities.createLocation
        (zipRepository, RepositoryUtilities.splitPath("data", "/"));

    final FlowHtmlOutputProcessor outputProcessor = new FlowHtmlOutputProcessor();

    final HtmlPrinter printer = new AllItemsHtmlPrinter(report.getResourceManager());
    printer.setContentWriter(root, new DefaultNameGenerator(root, "report.html"));
    printer.setDataWriter(data, new DefaultNameGenerator(data, "content"));

    String urlPattern = getInitParameter("url-pattern");
    if (urlPattern == null)
    {
      final String requestURL = String.valueOf(request.getRequestURL());
      final int parameterStart = requestURL.indexOf('?');
      final String params = String.format("?report.name=%s&filename={0}",
          URLEncoder.encode(report.getTitle(), request.getCharacterEncoding()));

      if (parameterStart == -1)
      {
        urlPattern = requestURL + params;
      }
      else
      {
        urlPattern = requestURL.substring(0, parameterStart) + params;
      }
    }
    printer.setUrlRewriter(new WebAppURLRewriter(urlPattern, request.getCharacterEncoding()));
    outputProcessor.setPrinter(printer);

    final FlowReportProcessor sp = new FlowReportProcessor(report, outputProcessor);
    sp.processReport();
    sp.close();
    zipRepository.close();
View Full Code Here

      final ZipRepository zipRepository = new ZipRepository();
      final ContentLocation root = zipRepository.getRoot();
      final ContentLocation data =
          RepositoryUtilities.createLocation( zipRepository, RepositoryUtilities.split( dataDirectory, "/" ) ); //$NON-NLS-1$

      final FlowHtmlOutputProcessor outputProcessor = new FlowHtmlOutputProcessor();

      final HtmlPrinter printer = new AllItemsHtmlPrinter( report.getResourceManager() );
      printer.setContentWriter( root, new DefaultNameGenerator( root, "report.html" ) ); //$NON-NLS-1$
      printer.setDataWriter( data, new DefaultNameGenerator( data, "content" ) ); //$NON-NLS-1$
      printer.setUrlRewriter( new SingleRepositoryURLRewriter() );
      outputProcessor.setPrinter( printer );

      final FlowReportProcessor sp = new FlowReportProcessor( report, outputProcessor );
      final int yieldRate = getYieldRate();
      if ( yieldRate > 0 ) {
        sp.addReportProgressListener( new YieldReportListener( yieldRate ) );
View Full Code Here

      final ContentLocation targetRoot = targetRepository.getRoot();

      final FileRepository dataRepository = new FileRepository( dataDirectory );
      final ContentLocation dataRoot = dataRepository.getRoot();

      final FlowHtmlOutputProcessor outputProcessor = new FlowHtmlOutputProcessor();

      final HtmlPrinter printer = new AllItemsHtmlPrinter( report.getResourceManager() );
      printer.setContentWriter( targetRoot, new DefaultNameGenerator( targetRoot, targetFile.getName() ) );
      printer.setDataWriter( dataRoot, new DefaultNameGenerator( targetRoot, "content" ) ); //$NON-NLS-1$
      printer.setUrlRewriter( new FileSystemURLRewriter() );
      outputProcessor.setPrinter( printer );

      final FlowReportProcessor sp = new FlowReportProcessor( report, outputProcessor );
      final int yieldRate = getYieldRate();
      if ( yieldRate > 0 ) {
        sp.addReportProgressListener( new YieldReportListener( yieldRate ) );
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.modules.output.table.html.FlowHtmlOutputProcessor

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.