com.ibm.commerce.command
Interface DirectViewCommand
- All Superinterfaces:
- AccCommand, ECCommand, Protectable, 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. |
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 |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- IBM copyright notice field.
- See Also:
- Constant Field Values
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
Feedback
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.