Author: johnh
Date: Fri Mar 27 01:03:45 2009
New Revision: 758951

URL: http://svn.apache.org/viewvc?rev=758951&view=rev
Log:
Adds override method allowing callers to force a transport mechanism whose 
target domain can be verified.


Modified:
    incubator/shindig/trunk/features/src/main/javascript/features/rpc/rpc.js

Modified: 
incubator/shindig/trunk/features/src/main/javascript/features/rpc/rpc.js
URL: 
http://svn.apache.org/viewvc/incubator/shindig/trunk/features/src/main/javascript/features/rpc/rpc.js?rev=758951&r1=758950&r2=758951&view=diff
==============================================================================
--- incubator/shindig/trunk/features/src/main/javascript/features/rpc/rpc.js 
(original)
+++ incubator/shindig/trunk/features/src/main/javascript/features/rpc/rpc.js 
Fri Mar 27 01:03:45 2009
@@ -783,6 +783,18 @@
     },
 
     /**
+     * Forces all subsequent calls to be made by a transport
+     * method that allows the caller to verify the message receiver
+     * (by way of the parent parameter, through getRelayUrl(...)).
+     * At present this means IFPC or WPM.
+     */
+    forceParentVerifiable: function() {
+      if (relayChannel !== 'wpm') {
+        relayChannel = 'ifpc';
+      }
+    },
+
+    /**
      * Calls an RPC service.
      * @param {String} targetId Module Id of the RPC service provider.
      *                          Empty if calling the parent container.


Reply via email to