/** * Handle method. Calls doCreate if necessary (the environment variable * "PRODUCT" is not set - which it will be if the RewriteRule has * taken control). * * @param scriptlet.xml.XMLScriptletRequest request * @return string class method (one of doGet, doPost, doHead) * @see xp://scriptlet.xml.XMLScriptlet#_handleMethod */ public function handleMethod($request) { // XXX TDB // if (!$request->getEnvValue('PRODUCT')) { // return 'doCreate'; // } return parent::handleMethod($request); }
/** * Calculate method to invoke * * @param scriptlet.HttpScriptletRequest request * @return string */ public function handleMethod($request) { parent::handleMethod($request); return 'doProcess'; }