public class SimpleOutputHandler extends Object implements IOutputHandler
CONTENT, FILE, OUTPUT_TYPE_CONTENT, OUTPUT_TYPE_DEFAULT, OUTPUT_TYPE_PARAMETERS, RESPONSE
Constructor and Description |
---|
SimpleOutputHandler(IContentItem contentItem,
boolean allowFeedback)
Creates a
SimpleContentItem copy of an IContentItem |
SimpleOutputHandler(OutputStream outputStream,
boolean allowFeedback)
Creates a SimpleContentItem from an OutputStream.
|
Modifier and Type | Method and Description |
---|---|
boolean |
allowFeedback() |
boolean |
contentDone() |
IContentItem |
getFeedbackContentItem() |
String |
getMimeType() |
IMimeTypeListener |
getMimeTypeListener() |
IContentItem |
getOutputContentItem(String outputName,
String contentName,
String instanceId,
String localMimeType) |
int |
getOutputPreference() |
IPentahoSession |
getSession() |
boolean |
isResponseExpected() |
void |
setContentItem(IContentItem content,
String objectName,
String contentName) |
void |
setMimeType(String mimeType) |
void |
setMimeTypeListener(IMimeTypeListener mimeTypeListener) |
void |
setOutput(String name,
Object value) |
void |
setOutputPreference(int outputType) |
void |
setOutputStream(OutputStream outputStream,
String outputName,
String contentName) |
void |
setSession(IPentahoSession session) |
public SimpleOutputHandler(IContentItem contentItem, boolean allowFeedback)
SimpleContentItem
copy of an IContentItem
contentItem
- provides the underlying outputStream this outputhandler manages. Feedback will also be written to
this contentItem's output stream if allowFeedback is trueallowFeedback
- public SimpleOutputHandler(OutputStream outputStream, boolean allowFeedback)
outputStream
- the underlying outputStream this outputhandler manages. Feedback will be written to this output
stream if allowFeedback is trueallowFeedback
- public void setSession(IPentahoSession session)
setSession
in interface IOutputHandler
public IPentahoSession getSession()
getSession
in interface IOutputHandler
public void setOutputStream(OutputStream outputStream, String outputName, String contentName)
public void setOutputPreference(int outputType)
setOutputPreference
in interface IOutputHandler
public boolean contentDone()
contentDone
in interface IOutputHandler
public int getOutputPreference()
getOutputPreference
in interface IOutputHandler
public void setMimeType(String mimeType)
public String getMimeType()
public boolean allowFeedback()
allowFeedback
in interface IOutputHandler
public IContentItem getFeedbackContentItem()
getFeedbackContentItem
in interface IOutputHandler
public IContentItem getOutputContentItem(String outputName, String contentName, String instanceId, String localMimeType)
getOutputContentItem
in interface IOutputHandler
public void setContentItem(IContentItem content, String objectName, String contentName)
public void setOutput(String name, Object value) throws IOException
setOutput
in interface IOutputHandler
IOException
public IMimeTypeListener getMimeTypeListener()
getMimeTypeListener
in interface IOutputHandler
public void setMimeTypeListener(IMimeTypeListener mimeTypeListener)
setMimeTypeListener
in interface IOutputHandler
public boolean isResponseExpected()
isResponseExpected
in interface IOutputHandler
Copyright © 2017 Hitachi Vantara. All rights reserved.