com.ibm.commerce.command
Class RedirectViewCommandImpl

java.lang.Object
  |
  +--com.ibm.commerce.command.AbstractECCommand
        |
        +--com.ibm.commerce.command.AbstractViewCommand
              |
              +--com.ibm.commerce.command.RedirectViewCommandImpl
All Implemented Interfaces:
AccCommand, ECCommand, RedirectViewCommand, ViewCommand

public abstract class RedirectViewCommandImpl
extends AbstractViewCommand
implements RedirectViewCommand

The abstract base implementation of all redirect view commands.


Field Summary
 
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. RedirectViewCommand
COPYRIGHT
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
Constructor Summary
RedirectViewCommandImpl()
          Constructor for RedirectViewCommandImpl.
 
Method Summary
 java.lang.String getDocumentPathName()
          Gets the path name of the document to be forwarded.
 java.lang.String getRedirectUrl()
          Gets the EC_REDIRECTURL property from the request properties.
 
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, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, 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, 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
 

Constructor Detail

RedirectViewCommandImpl

public RedirectViewCommandImpl()
Constructor for RedirectViewCommandImpl.
Method Detail

getDocumentPathName

public java.lang.String getDocumentPathName()
                                     throws ECException
Gets the path name of the document to be forwarded.
Specified by:
getDocumentPathName in interface RedirectViewCommand
Returns:
path name of the document
Throws:
ECException - - generates _ERR_GENERIC error message

getRedirectUrl

public java.lang.String getRedirectUrl()
                                throws ECException
Gets the EC_REDIRECTURL property from the request properties. If none is found try to get the EC_URL property instead. If none is found, throws a parameter not found exception. After the EC_REDIRECTURL or EC_REDIRECTURL has been retrieved, it will be removed from the properties list so that it won't be added as parameters to the redirect url itself.
Specified by:
getRedirectUrl in interface RedirectViewCommand
Returns:
redirect URL
Throws:
ECException - - generates _ERR_MISSING_CMD_PARAMETERS error message