Class HttpOutputHandler

java.lang.Object
org.pentaho.platform.web.http.HttpOutputHandler
All Implemented Interfaces:
org.pentaho.platform.api.engine.IMimeTypeListener, org.pentaho.platform.api.engine.IOutputHandler

public class HttpOutputHandler extends Object implements org.pentaho.platform.api.engine.IOutputHandler, org.pentaho.platform.api.engine.IMimeTypeListener
  • Field Details

    • outputContent

      protected org.pentaho.platform.api.repository.IContentItem outputContent
  • Constructor Details

    • HttpOutputHandler

      public HttpOutputHandler(javax.servlet.http.HttpServletResponse response, OutputStream outputStream, boolean allowFeedback)
  • Method Details

    • 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
    • getOutputPreference

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

      public void setMimeType(String mimeType)
      Specified by:
      setMimeType in interface org.pentaho.platform.api.engine.IMimeTypeListener
    • setName

      public void setName(String name)
      Specified by:
      setName in interface org.pentaho.platform.api.engine.IMimeTypeListener
    • contentDone

      @Deprecated public boolean contentDone()
      Deprecated.
      Specified by:
      contentDone in interface org.pentaho.platform.api.engine.IOutputHandler
    • 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 objectName, String contentName, String instanceId, String mimeType)
      Specified by:
      getOutputContentItem in interface org.pentaho.platform.api.engine.IOutputHandler
    • 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
    • getResponse

      public javax.servlet.http.HttpServletResponse getResponse()
    • setResponse

      public void setResponse(javax.servlet.http.HttpServletResponse response)
    • isResponseExpected

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

      public boolean isWritable()