public interface IOutputHandler
Modifier and Type | Field and Description |
---|---|
static String |
CONTENT |
static String |
FILE |
static int |
OUTPUT_TYPE_CONTENT |
static int |
OUTPUT_TYPE_DEFAULT |
static int |
OUTPUT_TYPE_PARAMETERS |
static String |
RESPONSE |
Modifier and Type | Method and Description |
---|---|
boolean |
allowFeedback()
Determines whether this output handler can send feedback ContentItems or not.
|
boolean |
contentDone()
Deprecated.
This method could never tell you if the content was actually done. Use
isResponseExpected() if you need information about a handlers likelihood to generate a
response. |
IContentItem |
getFeedbackContentItem()
Retrieve the ContentItem that describes the request interface for additional or missing information (missing
from the original request)
|
IMimeTypeListener |
getMimeTypeListener() |
IContentItem |
getOutputContentItem(String objectName,
String contentName,
String instanceId,
String mimeType)
Retrieve the ContentItem that describes the output from this request's component execution.
|
int |
getOutputPreference()
Gets the output type prefered by the handler.
|
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.
|
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 |
setSession(IPentahoSession session) |
static final int OUTPUT_TYPE_PARAMETERS
static final int OUTPUT_TYPE_CONTENT
static final int OUTPUT_TYPE_DEFAULT
static final String RESPONSE
static final String CONTENT
static final String FILE
void setSession(IPentahoSession session)
IPentahoSession getSession()
@Deprecated boolean contentDone()
isResponseExpected()
if you need information about a handlers likelihood to generate a
response.boolean isResponseExpected()
IContentItem getFeedbackContentItem()
IContentItem getOutputContentItem(String objectName, String contentName, String instanceId, String mimeType)
objectName
- Name of the objectcontentName
- Name of the contentboolean allowFeedback()
Generally, 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.
void setOutputPreference(int outputType)
outputType
- Output type requestedint getOutputPreference()
void setOutput(String name, Object value) throws IOException
name
- Name of the outputvalue
- Value of the outputIOException
IMimeTypeListener getMimeTypeListener()
void setMimeTypeListener(IMimeTypeListener mimeTypeListener)