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
Fields Modifier and Type Field Description protected org.pentaho.platform.api.repository.IContentItem
outputContent
-
Constructor Summary
Constructors Constructor Description HttpOutputHandler(javax.servlet.http.HttpServletResponse response, OutputStream outputStream, boolean allowFeedback)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
allowFeedback()
boolean
contentDone()
Deprecated.org.pentaho.platform.api.repository.IContentItem
getFeedbackContentItem()
org.pentaho.platform.api.engine.IMimeTypeListener
getMimeTypeListener()
org.pentaho.platform.api.repository.IContentItem
getOutputContentItem(String objectName, String contentName, String instanceId, String mimeType)
int
getOutputPreference()
javax.servlet.http.HttpServletResponse
getResponse()
org.pentaho.platform.api.engine.IPentahoSession
getSession()
boolean
isResponseExpected()
boolean
isWritable()
void
setMimeType(String mimeType)
void
setMimeTypeListener(org.pentaho.platform.api.engine.IMimeTypeListener mimeTypeListener)
void
setName(String name)
void
setOutput(String name, Object value)
void
setOutputPreference(int outputType)
void
setResponse(javax.servlet.http.HttpServletResponse response)
void
setSession(org.pentaho.platform.api.engine.IPentahoSession session)
-
-
-
Constructor Detail
-
HttpOutputHandler
public HttpOutputHandler(javax.servlet.http.HttpServletResponse response, OutputStream outputStream, boolean allowFeedback)
-
-
Method Detail
-
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
public void setMimeType(String mimeType)
- Specified by:
setMimeType
in interfaceorg.pentaho.platform.api.engine.IMimeTypeListener
-
setName
public void setName(String name)
- Specified by:
setName
in interfaceorg.pentaho.platform.api.engine.IMimeTypeListener
-
contentDone
@Deprecated public boolean 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
public void setOutput(String name, Object value) throws IOException
- 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()
-
-