public abstract class AbstractDirectViewCommand extends AbstractViewCommand implements DirectViewCommand
defaultCommandClassName
Constructor and Description |
---|
AbstractDirectViewCommand()
This is the default constructor for this class.
|
Modifier and Type | Method and Description |
---|---|
static TypedProperty |
createTextResponse(java.lang.String textResponse)
This method prepares a
TypedProperty object for sending a text response. |
int |
getContentLength()
This method gets the length of the data.
|
java.lang.String |
getContentType()
This method gets the content type.
|
java.lang.Object |
getRawDocument()
This method gets the raw document data from the
RequestProperties object. |
java.io.InputStream |
getTextDocument()
This method gets the text document data as an input stream from the
RequestProperties object. |
fulfills, getForUserId, getOwner, getRequestProperties, getResourceOwners, getResponseProperties, getViewCommandContext, getViewName, mergeProperties, performExecute, setForUserId, setOwner, setRequestProperties, setViewCommandContext, setViewName
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, setForUserId, setUserId, validateParameters
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRequestProperties, getResponseProperties, getViewName, mergeProperties, setRequestProperties, setViewName
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, performExecute, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
fulfills, getOwner
public AbstractDirectViewCommand()
public final int getContentLength()
getContentLength
in interface DirectViewCommand
public final java.lang.String getContentType()
text
and html
.getContentType
in interface DirectViewCommand
public final java.lang.Object getRawDocument()
RequestProperties
object.getRawDocument
in interface DirectViewCommand
public final java.io.InputStream getTextDocument()
RequestProperties
object.getTextDocument
in interface DirectViewCommand
InputStream
of the text document.public static TypedProperty createTextResponse(java.lang.String textResponse)
TypedProperty
object for sending a text response. This is done by
adding the additional values to the TypedProperty
object that enable it to call the DirectView
.textResponse
- This is the text to be returned.TypedProperty
object representation of the given text.