Package org.pentaho.platform.web.http
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 Summary
FieldsModifier and TypeFieldDescriptionprotected org.pentaho.platform.api.repository.IContentItemFields inherited from interface org.pentaho.platform.api.engine.IOutputHandler
CONTENT, FILE, OUTPUT_TYPE_CONTENT, OUTPUT_TYPE_DEFAULT, OUTPUT_TYPE_PARAMETERS, RESPONSE -
Constructor Summary
ConstructorsConstructorDescriptionHttpOutputHandler(javax.servlet.http.HttpServletResponse response, OutputStream outputStream, boolean allowFeedback) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanDeprecated.org.pentaho.platform.api.repository.IContentItemorg.pentaho.platform.api.engine.IMimeTypeListenerorg.pentaho.platform.api.repository.IContentItemgetOutputContentItem(String objectName, String contentName, String instanceId, String mimeType) intjavax.servlet.http.HttpServletResponseorg.pentaho.platform.api.engine.IPentahoSessionbooleanbooleanvoidsetMimeType(String mimeType) voidsetMimeTypeListener(org.pentaho.platform.api.engine.IMimeTypeListener mimeTypeListener) voidvoidvoidsetOutputPreference(int outputType) voidsetResponse(javax.servlet.http.HttpServletResponse response) voidsetSession(org.pentaho.platform.api.engine.IPentahoSession session)
-
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:
setSessionin interfaceorg.pentaho.platform.api.engine.IOutputHandler
-
getSession
public org.pentaho.platform.api.engine.IPentahoSession getSession()- Specified by:
getSessionin interfaceorg.pentaho.platform.api.engine.IOutputHandler
-
setOutputPreference
public void setOutputPreference(int outputType) - Specified by:
setOutputPreferencein interfaceorg.pentaho.platform.api.engine.IOutputHandler
-
getOutputPreference
public int getOutputPreference()- Specified by:
getOutputPreferencein interfaceorg.pentaho.platform.api.engine.IOutputHandler
-
setMimeType
- Specified by:
setMimeTypein interfaceorg.pentaho.platform.api.engine.IMimeTypeListener
-
setName
- Specified by:
setNamein interfaceorg.pentaho.platform.api.engine.IMimeTypeListener
-
contentDone
Deprecated.- Specified by:
contentDonein interfaceorg.pentaho.platform.api.engine.IOutputHandler
-
allowFeedback
public boolean allowFeedback()- Specified by:
allowFeedbackin interfaceorg.pentaho.platform.api.engine.IOutputHandler
-
getFeedbackContentItem
public org.pentaho.platform.api.repository.IContentItem getFeedbackContentItem()- Specified by:
getFeedbackContentItemin interfaceorg.pentaho.platform.api.engine.IOutputHandler
-
getOutputContentItem
public org.pentaho.platform.api.repository.IContentItem getOutputContentItem(String objectName, String contentName, String instanceId, String mimeType) - Specified by:
getOutputContentItemin interfaceorg.pentaho.platform.api.engine.IOutputHandler
-
setOutput
- Specified by:
setOutputin interfaceorg.pentaho.platform.api.engine.IOutputHandler- Throws:
IOException
-
getMimeTypeListener
public org.pentaho.platform.api.engine.IMimeTypeListener getMimeTypeListener()- Specified by:
getMimeTypeListenerin interfaceorg.pentaho.platform.api.engine.IOutputHandler
-
setMimeTypeListener
public void setMimeTypeListener(org.pentaho.platform.api.engine.IMimeTypeListener mimeTypeListener) - Specified by:
setMimeTypeListenerin interfaceorg.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:
isResponseExpectedin interfaceorg.pentaho.platform.api.engine.IOutputHandler
-
isWritable
public boolean isWritable()
-