Class FileResourceContentGenerator

  • All Implemented Interfaces:
    Serializable, org.pentaho.platform.api.action.IAction, org.pentaho.platform.api.action.IStreamingAction, org.pentaho.platform.api.engine.IContentGenerator, org.pentaho.platform.api.engine.ILogger, IFileResourceRenderer

    public abstract class FileResourceContentGenerator
    extends org.pentaho.platform.engine.services.solution.SimpleContentGenerator
    implements IFileResourceRenderer
    Abstract class that enables a content generator to act like a Java Bean through the IFileResourceRenderer api
    Author:
    aaron
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class org.pentaho.platform.engine.services.solution.BaseContentGenerator

        callbacks, instanceId, itemName, messages, outputHandler, parameterProviders, urlFactory, userSession
      • Fields inherited from class org.pentaho.platform.engine.core.system.PentahoBase

        EMPTYLOGID, loggingLevel, LOGID_MASK1, LOGID_MASK2, LOGID_SEPARATOR
      • Fields inherited from interface org.pentaho.platform.api.engine.ILogger

        ACTIVITY_LOG, DEBUG, ERROR, FATAL, INFO, INSTANCE_LOG, SESSION_LOG, SOLUTION_LOG, TRACE, UNKNOWN, WARN
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void createContent​(OutputStream out)  
      org.apache.commons.logging.Log getLogger()  
      String getMimeType()  
      • Methods inherited from class org.pentaho.platform.engine.services.solution.SimpleContentGenerator

        createContent
      • Methods inherited from class org.pentaho.platform.engine.services.solution.BaseContentGenerator

        getCallback, getItemName, setCallbacks, setInstanceId, setItemName, setMessagesList, setOutputHandler, setParameterProviders, setSession, setUrlFactory
      • Methods inherited from class org.pentaho.platform.engine.core.system.PentahoBase

        debug, debug, error, error, fatal, fatal, genLogIdFromInfo, genLogIdFromInfo, genLogIdFromSession, getLoggingLevel, getLogId, getObjectName, info, info, setLoggingLevel, setLogId, trace, trace, warn, warn
      • Methods inherited from interface org.pentaho.platform.api.action.IAction

        execute, isExecutionSuccessful
      • Methods inherited from interface org.pentaho.platform.api.engine.ILogger

        debug, debug, error, error, fatal, fatal, getLoggingLevel, info, info, setLoggingLevel, trace, trace, warn, warn
      • Methods inherited from interface org.pentaho.platform.api.action.IStreamingAction

        getMimeType, setOutputStream
    • Constructor Detail

      • FileResourceContentGenerator

        public FileResourceContentGenerator()
    • Method Detail

      • createContent

        public void createContent​(OutputStream out)
                           throws Exception
        Specified by:
        createContent in class org.pentaho.platform.engine.services.solution.SimpleContentGenerator
        Throws:
        Exception
      • getMimeType

        public String getMimeType()
        Specified by:
        getMimeType in class org.pentaho.platform.engine.services.solution.SimpleContentGenerator
      • getLogger

        public org.apache.commons.logging.Log getLogger()
        Specified by:
        getLogger in class org.pentaho.platform.engine.services.solution.BaseContentGenerator