|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pentaho.platform.web.http.HttpOutputHandler
public class HttpOutputHandler
| 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 | |
|---|---|
HttpOutputHandler(javax.servlet.http.HttpServletResponse response,
OutputStream outputStream,
boolean allowFeedback)
|
|
| Method Summary | |
|---|---|
boolean |
allowFeedback()
Determines whether this output handler can send feedback ContentItems or not. |
boolean |
contentDone()
Deprecated. |
IContentItem |
getFeedbackContentItem()
Retrieve the ContentItem that describes the request interface for additional or missing information (missing from the original request) |
IMimeTypeListener |
getMimeTypeListener()
|
IContentItem |
getOutputContent()
Deprecated. use getOutputContentItem(String, String, String, String, String) |
IContentItem |
getOutputContentItem(String objectName,
String contentName,
String solution,
String instanceId,
String mimeType)
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 mimeType)
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. |
javax.servlet.http.HttpServletResponse |
getResponse()
|
IPentahoSession |
getSession()
|
boolean |
isResponseExpected()
Indicates whether or not the handler is expected to have data written to a response output stream managed by the handler. |
boolean |
isWritable()
|
void |
setContentItem(IContentItem content,
String objectName,
String contentName)
Sets the output ContentItem for this handler. |
void |
setMimeType(String mimeType)
|
void |
setMimeTypeListener(IMimeTypeListener mimeTypeListener)
|
void |
setName(String name)
|
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 |
setResponse(javax.servlet.http.HttpServletResponse response)
|
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 HttpOutputHandler(javax.servlet.http.HttpServletResponse response,
OutputStream outputStream,
boolean allowFeedback)
| Method Detail |
|---|
public void setSession(IPentahoSession session)
setSession in interface IOutputHandlerpublic IPentahoSession getSession()
getSession in interface IOutputHandlerpublic void setOutputPreference(int outputType)
IOutputHandler
setOutputPreference in interface IOutputHandleroutputType - Output type requestedpublic int getOutputPreference()
IOutputHandler
getOutputPreference in interface IOutputHandlerpublic void setMimeType(String mimeType)
setMimeType in interface IMimeTypeListenerpublic void setName(String name)
setName in interface IMimeTypeListener@Deprecated public boolean contentDone()
contentDone in interface IOutputHandlerpublic 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 objectName,
String contentName,
String solution,
String instanceId,
String mimeType)
IOutputHandler
getOutputContentItem in interface IOutputHandlerobjectName - Name of the objectcontentName - Name of the content
public IContentItem getOutputContentItem(String objectName,
String contentName,
String title,
String url,
String solution,
String instanceId,
String mimeType)
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 IMimeTypeListener getMimeTypeListener()
getMimeTypeListener in interface IOutputHandlerpublic void setMimeTypeListener(IMimeTypeListener mimeTypeListener)
setMimeTypeListener in interface IOutputHandlerpublic IContentItem getOutputContent()
getOutputContentItem(String, String, String, String, String)
public javax.servlet.http.HttpServletResponse getResponse()
public void setResponse(javax.servlet.http.HttpServletResponse response)
public boolean isResponseExpected()
IOutputHandler
isResponseExpected in interface IOutputHandlerpublic void setRuntimeContext(IRuntimeContext runtimeContext)
setRuntimeContext in interface IOutputHandlerpublic boolean isWritable()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||