com.ibm.commerce.command
Class AbstractDirectViewCommand

java.lang.Object
  |
  +--com.ibm.commerce.command.AbstractECCommand
        |
        +--com.ibm.commerce.command.AbstractViewCommand
              |
              +--com.ibm.commerce.command.AbstractDirectViewCommand
All Implemented Interfaces:
AccCommand, DirectViewCommand, ECCommand, Protectable, ViewCommand
Direct Known Subclasses:
HttpDirectViewCommandImpl

public abstract class AbstractDirectViewCommand
extends AbstractViewCommand
implements DirectViewCommand

This is the abstract base implementation of direct view commands.


Fields inherited from class com.ibm.commerce.command.AbstractViewCommand
requestProperties, responseProperties
 
Fields inherited from class com.ibm.commerce.command.AbstractECCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.command.DirectViewCommand
COPYRIGHT
 
Fields inherited from interface com.ibm.commerce.command.ECCommand
defaultCommandClassName
 
Constructor Summary
AbstractDirectViewCommand()
          AbstractDirectViewCommand constructor comment.
 
Method Summary
 int getContentLength()
          Returns the length of the data.
 java.lang.String getContentType()
          Returns the content type.
 java.lang.Object getRawDocument()
          Returns the raw document data from the requestProperties.
 java.io.InputStream getTextDocument()
          Returns the text document data as an input stream from requestProperties.
 
Methods inherited from class com.ibm.commerce.command.AbstractViewCommand
fulfills, getForUserId, getOwner, getRequestProperties, getResourceOwners, getResponseProperties, getViewName, mergeProperties, performExecute, setForUserId, setOwner, setRequestProperties, setResponseProperties, setViewName
 
Methods inherited from class com.ibm.commerce.command.AbstractECCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
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, setAccCheck, setForUserId, setOwner
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, execute, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
 

Constructor Detail

AbstractDirectViewCommand

public AbstractDirectViewCommand()
AbstractDirectViewCommand constructor comment.
Method Detail

getContentLength

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

Specified by:
getContentLength in interface DirectViewCommand
Returns:
int - length

getContentType

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

Specified by:
getContentType in interface DirectViewCommand
Returns:
String - content type

getRawDocument

public final java.lang.Object getRawDocument()
Returns the raw document data from the requestProperties.

Specified by:
getRawDocument in interface DirectViewCommand
Returns:
java.lang.Object

getTextDocument

public final java.io.InputStream getTextDocument()
Returns the text document data as an input stream from requestProperties.

Specified by:
getTextDocument in interface DirectViewCommand
Returns:
java.io.InputStream