Package org.pentaho.platform.engine.core.output

Examples of org.pentaho.platform.engine.core.output.SimpleOutputHandler


  public void testJFreeReportParameterPage2() {
    startTest();
    SimpleParameterProvider parameterProvider = new SimpleParameterProvider();
    parameterProvider.setParameter( "type", "html" ); //$NON-NLS-1$ //$NON-NLS-2$
    OutputStream outputStream = getOutputStream( "ReportingTest.testJFreeReportParameterPage2", ".html" ); //$NON-NLS-1$ //$NON-NLS-2$
    SimpleOutputHandler outputHandler = new SimpleOutputHandler( outputStream, true );
    StandaloneSession session =
        new StandaloneSession( Messages.getInstance().getString( "BaseTest.DEBUG_JUNIT_SESSION" ) ); //$NON-NLS-1$
    IRuntimeContext context =
        run(
            "/test/reporting/jfreereport-reports-test-param2.xaction", null, false, parameterProvider, outputHandler, session ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
View Full Code Here


    AxisWebServiceManager.currentAxisConfiguration = axisCfg;
    AxisWebServiceManager.currentAxisConfigContext = configContext;

    out = new ByteArrayOutputStream();
    IOutputHandler outputHandler = new SimpleOutputHandler( out, false );
    outputHandler.setMimeTypeListener( new MimeTypeListener() );

    contentGenerator = new AxisServiceExecutor();

    contentGenerator.setOutputHandler( outputHandler );
    contentGenerator.setMessagesList( new ArrayList<String>() );
View Full Code Here

    if ( sessionStartupActions != null ) {
      for ( ISessionStartupAction sessionStartupAction : sessionStartupActions ) {
        // parse the actionStr out to identify an action
        // now execute the action...

        SimpleOutputHandler outputHandler = null;

        String instanceId = null;

        ISolutionEngine solutionEngine = PentahoSystem.get( ISolutionEngine.class, session );
        solutionEngine.setLoggingLevel( PentahoSystem.loggingLevel );
View Full Code Here

    if ( globalStartupActions != null ) {
      for ( ISessionStartupAction globalStartupAction : globalStartupActions ) {
        // now execute the action...

        SimpleOutputHandler outputHandler = null;

        String instanceId = null;

        ISolutionEngine solutionEngine = PentahoSystem.get( ISolutionEngine.class, session );
        solutionEngine.setLoggingLevel( PentahoSystem.loggingLevel );
View Full Code Here

    HashMap parameterProviders = new HashMap();
    parameterProviders.put( HttpRequestParameterProvider.SCOPE_REQUEST, requestParameters );
    parameterProviders.put( HttpSessionParameterProvider.SCOPE_SESSION, sessionParameters );
    StandaloneSession session = new StandaloneSession( "BaseTest.DEBUG_JUNIT_SESSION" ); //$NON-NLS-1$

    SimpleOutputHandler outputHandler = new SimpleOutputHandler( outputStream, false );
    BaseRequestHandler requestHandler = new BaseRequestHandler( session, null, outputHandler, null, urlFactory );

    try {
      widget.validate( session, requestHandler );
      widget.handleRequest( outputStream, requestHandler, contentType, parameterProviders );
View Full Code Here

    solutionEngine.init( getSession() );

    HashMap parameterProviders = getParameterProviders();

    OutputStream outputStream = null;
    SimpleOutputHandler outputHandler = null;
    outputHandler = new SimpleOutputHandler( outputStream, false );

    ArrayList messages = new ArrayList();
    String processId = this.getClass().getName();
    context = solutionEngine.execute( actionPath, processId, false, true, instanceId, false, //$NON-NLS-1$ //$NON-NLS-2$
        parameterProviders, outputHandler, null, urlFactory, messages );
View Full Code Here

TOP

Related Classes of org.pentaho.platform.engine.core.output.SimpleOutputHandler

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.