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
Modifier and TypeFieldDescriptionprotected org.pentaho.platform.api.repository.IContentItem
Fields inherited from interface org.pentaho.platform.api.engine.IOutputHandler
CONTENT, FILE, OUTPUT_TYPE_CONTENT, OUTPUT_TYPE_DEFAULT, OUTPUT_TYPE_PARAMETERS, RESPONSE
-
Constructor Summary
ConstructorDescriptionHttpOutputHandler
(javax.servlet.http.HttpServletResponse response, OutputStream outputStream, boolean allowFeedback) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
Deprecated.org.pentaho.platform.api.repository.IContentItem
org.pentaho.platform.api.engine.IMimeTypeListener
org.pentaho.platform.api.repository.IContentItem
getOutputContentItem
(String objectName, String contentName, String instanceId, String mimeType) int
javax.servlet.http.HttpServletResponse
org.pentaho.platform.api.engine.IPentahoSession
boolean
boolean
void
setMimeType
(String mimeType) void
setMimeTypeListener
(org.pentaho.platform.api.engine.IMimeTypeListener mimeTypeListener) void
void
void
setOutputPreference
(int outputType) void
setResponse
(javax.servlet.http.HttpServletResponse response) void
setSession
(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:
setSession
in interfaceorg.pentaho.platform.api.engine.IOutputHandler
-
getSession
public org.pentaho.platform.api.engine.IPentahoSession getSession()- Specified by:
getSession
in interfaceorg.pentaho.platform.api.engine.IOutputHandler
-
setOutputPreference
public void setOutputPreference(int outputType) - Specified by:
setOutputPreference
in interfaceorg.pentaho.platform.api.engine.IOutputHandler
-
getOutputPreference
public int getOutputPreference()- Specified by:
getOutputPreference
in interfaceorg.pentaho.platform.api.engine.IOutputHandler
-
setMimeType
- Specified by:
setMimeType
in interfaceorg.pentaho.platform.api.engine.IMimeTypeListener
-
setName
- Specified by:
setName
in interfaceorg.pentaho.platform.api.engine.IMimeTypeListener
-
contentDone
Deprecated.- Specified by:
contentDone
in interfaceorg.pentaho.platform.api.engine.IOutputHandler
-
allowFeedback
public boolean allowFeedback()- Specified by:
allowFeedback
in interfaceorg.pentaho.platform.api.engine.IOutputHandler
-
getFeedbackContentItem
public org.pentaho.platform.api.repository.IContentItem getFeedbackContentItem()- Specified by:
getFeedbackContentItem
in 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:
getOutputContentItem
in interfaceorg.pentaho.platform.api.engine.IOutputHandler
-
setOutput
- Specified by:
setOutput
in interfaceorg.pentaho.platform.api.engine.IOutputHandler
- Throws:
IOException
-
getMimeTypeListener
public org.pentaho.platform.api.engine.IMimeTypeListener getMimeTypeListener()- Specified by:
getMimeTypeListener
in interfaceorg.pentaho.platform.api.engine.IOutputHandler
-
setMimeTypeListener
public void setMimeTypeListener(org.pentaho.platform.api.engine.IMimeTypeListener mimeTypeListener) - Specified by:
setMimeTypeListener
in 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:
isResponseExpected
in interfaceorg.pentaho.platform.api.engine.IOutputHandler
-
isWritable
public boolean isWritable()
-