Class SimpleOutputHandler

  • All Implemented Interfaces:
    org.pentaho.platform.api.engine.IOutputHandler

    public class SimpleOutputHandler
    extends Object
    implements org.pentaho.platform.api.engine.IOutputHandler
    Author:
    aaron
    • Constructor Detail

      • SimpleOutputHandler

        public SimpleOutputHandler​(org.pentaho.platform.api.repository.IContentItem contentItem,
                                   boolean allowFeedback)
        Creates a SimpleContentItem copy of an IContentItem
        Parameters:
        contentItem - provides the underlying outputStream this outputhandler manages. Feedback will also be written to this contentItem's output stream if allowFeedback is true
        allowFeedback -
      • SimpleOutputHandler

        public SimpleOutputHandler​(OutputStream outputStream,
                                   boolean allowFeedback)
        Creates a SimpleContentItem from an OutputStream.
        Parameters:
        outputStream - the underlying outputStream this outputhandler manages. Feedback will be written to this output stream if allowFeedback is true
        allowFeedback -
    • Method Detail

      • setSession

        public void setSession​(org.pentaho.platform.api.engine.IPentahoSession session)
        Specified by:
        setSession in interface org.pentaho.platform.api.engine.IOutputHandler
      • getSession

        public org.pentaho.platform.api.engine.IPentahoSession getSession()
        Specified by:
        getSession in interface org.pentaho.platform.api.engine.IOutputHandler
      • setOutputPreference

        public void setOutputPreference​(int outputType)
        Specified by:
        setOutputPreference in interface org.pentaho.platform.api.engine.IOutputHandler
      • contentDone

        public boolean contentDone()
        Specified by:
        contentDone in interface org.pentaho.platform.api.engine.IOutputHandler
      • getOutputPreference

        public int getOutputPreference()
        Specified by:
        getOutputPreference in interface org.pentaho.platform.api.engine.IOutputHandler
      • setMimeType

        public void setMimeType​(String mimeType)
      • getMimeType

        public String getMimeType()
      • allowFeedback

        public boolean allowFeedback()
        Specified by:
        allowFeedback in interface org.pentaho.platform.api.engine.IOutputHandler
      • getFeedbackContentItem

        public org.pentaho.platform.api.repository.IContentItem getFeedbackContentItem()
        Specified by:
        getFeedbackContentItem in interface org.pentaho.platform.api.engine.IOutputHandler
      • getOutputContentItem

        public org.pentaho.platform.api.repository.IContentItem getOutputContentItem​(String outputName,
                                                                                     String contentName,
                                                                                     String instanceId,
                                                                                     String localMimeType)
        Specified by:
        getOutputContentItem in interface org.pentaho.platform.api.engine.IOutputHandler
      • setContentItem

        public void setContentItem​(org.pentaho.platform.api.repository.IContentItem content,
                                   String objectName,
                                   String contentName)
      • setOutput

        public void setOutput​(String name,
                              Object value)
                       throws IOException
        Specified by:
        setOutput in interface org.pentaho.platform.api.engine.IOutputHandler
        Throws:
        IOException
      • getMimeTypeListener

        public org.pentaho.platform.api.engine.IMimeTypeListener getMimeTypeListener()
        Specified by:
        getMimeTypeListener in interface org.pentaho.platform.api.engine.IOutputHandler
      • setMimeTypeListener

        public void setMimeTypeListener​(org.pentaho.platform.api.engine.IMimeTypeListener mimeTypeListener)
        Specified by:
        setMimeTypeListener in interface org.pentaho.platform.api.engine.IOutputHandler
      • isResponseExpected

        public boolean isResponseExpected()
        Specified by:
        isResponseExpected in interface org.pentaho.platform.api.engine.IOutputHandler