com.ibm.commerce.command

Class RedirectViewCommandImpl

    • Constructor Detail

      • RedirectViewCommandImpl

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

      • 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:
        The path name of the document.
        Throws:
        ECException - Generates 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 tries to get the EC_URL property instead. If none is found, it throws a parameter not found exception. 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:
        The redirect URL.
        Throws:
        ECException - Generates an _ERR_MISSING_CMD_PARAMETERS error message.