com.ibm.commerce.command

Class AbstractRedirectViewCommand

    • Constructor Detail

      • AbstractRedirectViewCommand

        public AbstractRedirectViewCommand()
        This is the default constructor for this class. It calls the constructor from the superclass.
    • Method Detail

      • setViewStorePath

        public void setViewStorePath(java.lang.Integer storePathId)
        This method sets the directory for the store path used to instantiate this view command.
        Parameters:
        storePathId - This is the store path identifier.
      • getDocumentPathName

        public java.lang.String getDocumentPathName()
                                             throws ECException
        This method gets the path name of the document to be forwarded.
        Specified by:
        getDocumentPathName in interface RedirectViewCommand
        Returns:
        This method returns the name of the document path.
        Throws:
        ECException - This exception generates an _ERR_CMD_MISSING_PARAM or an _ERR_GENERIC error message.
      • getRedirectUrl

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