com.ibm.commerce.command
Interface DirectViewCommand

All Superinterfaces:
AccCommand, ECCommand, ViewCommand
All Known Implementing Classes:
AbstractDirectViewCommand

public interface DirectViewCommand
extends ViewCommand

DirectViewCommand is the interface for defining a direct view command. A direct view command is used to return raw data or text data as a stream.


Field Summary
static java.lang.String COPYRIGHT
          IBM copyright notice field.
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
Method Summary
 int getContentLength()
          Returns the length of the data.
 java.lang.String getContentType()
          Returns the content type.
 java.lang.Object getRawDocument()
          Gets the raw document data.
 java.io.InputStream getTextDocument()
          Gets the text document data as an input stream.
 
Methods inherited from interface com.ibm.commerce.command. ViewCommand
getRequestProperties, getResponseProperties, getViewName, mergeProperties, setRequestProperties, setViewName
 
Methods inherited from interface com.ibm.commerce.command. AccCommand
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
 
Methods inherited from interface com.ibm.commerce.command. ECCommand
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
 

Field Detail
public static final java.lang.String COPYRIGHT
IBM copyright notice field.
See Also:
Constant Field Values
Method Detail

getContentLength

public int getContentLength()
Returns the length of the data.
Returns:
length of the data

getContentType

public java.lang.String getContentType()
Returns the content type. Content type can be Text/html etc.
Returns:
content type

getTextDocument

public java.io.InputStream getTextDocument()
Gets the text document data as an input stream.
Returns:
text document data as an input stream

getRawDocument

public java.lang.Object getRawDocument()
Gets the raw document data.
Returns:
raw document dat