|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pentaho.platform.engine.core.output.SimpleOutputHandler
public class SimpleOutputHandler
| Field Summary |
|---|
| Fields inherited from interface org.pentaho.platform.api.engine.IOutputHandler |
|---|
CONTENT, FILE, OUTPUT_TYPE_CONTENT, OUTPUT_TYPE_DEFAULT, OUTPUT_TYPE_PARAMETERS, RESPONSE |
| Constructor Summary | |
|---|---|
SimpleOutputHandler(IContentItem contentItem,
boolean allowFeedback)
|
|
SimpleOutputHandler(OutputStream outputStream,
boolean allowFeedback)
|
|
| Method Summary | |
|---|---|
boolean |
allowFeedback()
Determines whether this output handler can send feedback ContentItems or not. |
boolean |
contentDone()
|
IContentItem |
getFeedbackContentItem()
Retrieve the ContentItem that describes the request interface for additional or missing information (missing from the original request) |
String |
getMimeType()
|
IMimeTypeListener |
getMimeTypeListener()
|
IContentItem |
getOutputContentItem(String outputName,
String contentName,
String solution,
String instanceId,
String localMimeType)
Retrieve the ContentItem that describes the output from this request's component execution. |
IContentItem |
getOutputContentItem(String objectName,
String contentName,
String title,
String url,
String solution,
String instanceId,
String localMimeType)
Retrieve the ContentItem that describes the output from this request's component execution. |
IOutputDef |
getOutputDef(String name)
Retrieve a single output parameter definition by name |
Map |
getOutputDefs()
Returns a map of the valid output parameter definitions for this request. |
int |
getOutputPreference()
Gets the output type prefered by the handler. |
Map |
getResponseAttributes()
|
IPentahoSession |
getSession()
|
void |
setContentItem(IContentItem content,
String objectName,
String contentName)
Sets the output ContentItem for this handler. |
void |
setMimeType(String mimeType)
|
void |
setMimeTypeListener(IMimeTypeListener mimeTypeListener)
|
void |
setOutput(String name,
Object value)
Sets an output of the handler. |
void |
setOutputPreference(int outputType)
Sets the output type that is wanted by the handler. |
void |
setOutputStream(OutputStream outputStream,
String outputName,
String contentName)
|
void |
setRuntimeContext(IRuntimeContext runtimeContext)
|
void |
setSession(IPentahoSession session)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleOutputHandler(IContentItem contentItem,
boolean allowFeedback)
public SimpleOutputHandler(OutputStream outputStream,
boolean allowFeedback)
| Method Detail |
|---|
public void setSession(IPentahoSession session)
setSession in interface IOutputHandlerpublic IPentahoSession getSession()
getSession in interface IOutputHandler
public void setOutputStream(OutputStream outputStream,
String outputName,
String contentName)
public void setOutputPreference(int outputType)
IOutputHandler
setOutputPreference in interface IOutputHandleroutputType - Output type requestedpublic boolean contentDone()
contentDone in interface IOutputHandlerpublic int getOutputPreference()
IOutputHandler
getOutputPreference in interface IOutputHandlerpublic void setMimeType(String mimeType)
public String getMimeType()
public boolean allowFeedback()
IOutputHandlerGenerally, if there is no client on the other side of the request that could receive and process feedback, then this boolean should be setto false.
allowFeedback in interface IOutputHandlerpublic Map getOutputDefs()
IOutputHandler
getOutputDefs in interface IOutputHandlerpublic IOutputDef getOutputDef(String name)
IOutputHandler
getOutputDef in interface IOutputHandlername - name of the output parameter definition requested
public IContentItem getFeedbackContentItem()
IOutputHandler
getFeedbackContentItem in interface IOutputHandler
public IContentItem getOutputContentItem(String outputName,
String contentName,
String solution,
String instanceId,
String localMimeType)
IOutputHandler
getOutputContentItem in interface IOutputHandleroutputName - Name of the objectcontentName - Name of the content
public IContentItem getOutputContentItem(String objectName,
String contentName,
String title,
String url,
String solution,
String instanceId,
String localMimeType)
IOutputHandler
getOutputContentItem in interface IOutputHandlerobjectName - Name of the objectcontentName - Name of the contenttitle - Title of the objecturl - URL to view the object
public void setContentItem(IContentItem content,
String objectName,
String contentName)
IOutputHandler
setContentItem in interface IOutputHandlercontent - ContentItem to setobjectName - Name of the objectcontentName - Name of the content
public void setOutput(String name,
Object value)
IOutputHandler
setOutput in interface IOutputHandlername - Name of the outputvalue - Value of the outputpublic Map getResponseAttributes()
public IMimeTypeListener getMimeTypeListener()
getMimeTypeListener in interface IOutputHandlerpublic void setMimeTypeListener(IMimeTypeListener mimeTypeListener)
setMimeTypeListener in interface IOutputHandlerpublic void setRuntimeContext(IRuntimeContext runtimeContext)
setRuntimeContext in interface IOutputHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||