Revision: 10029
Author:   gwt.mirror...@gmail.com
Date:     Tue Apr 19 12:07:49 2011
Log:      Cherry-pick r9991 into 2.3 release branch.

http://code.google.com/p/google-web-toolkit/source/detail?r=10029

Modified:
/releases/2.3/user/src/com/google/gwt/user/server/rpc/AbstractXsrfProtectedServiceServlet.java /releases/2.3/user/src/com/google/gwt/user/server/rpc/XsrfProtectedServiceServlet.java /releases/2.3/user/src/com/google/gwt/user/server/rpc/XsrfTokenServiceServlet.java

=======================================
--- /releases/2.3/user/src/com/google/gwt/user/server/rpc/AbstractXsrfProtectedServiceServlet.java Wed Feb 23 14:40:04 2011 +++ /releases/2.3/user/src/com/google/gwt/user/server/rpc/AbstractXsrfProtectedServiceServlet.java Tue Apr 19 08:53:49 2011
@@ -41,6 +41,24 @@
  */
 public abstract class AbstractXsrfProtectedServiceServlet extends
     RemoteServiceServlet {
+
+  /**
+   * The default constructor used by service implementations that
+   * extend this class.  The servlet will delegate AJAX requests to
+   * the appropriate method in the subclass.
+   */
+  public AbstractXsrfProtectedServiceServlet() {
+    super();
+  }
+
+  /**
+   * The wrapping constructor used by service implementations that are
+   * separate from this class.  The servlet will delegate AJAX
+   * requests to the appropriate method in the given object.
+   */
+  public AbstractXsrfProtectedServiceServlet(Object delegate) {
+    super(delegate);
+  }

   @Override
   protected void onAfterRequestDeserialized(RPCRequest rpcRequest) {
=======================================
--- /releases/2.3/user/src/com/google/gwt/user/server/rpc/XsrfProtectedServiceServlet.java Mon Feb 28 10:45:39 2011 +++ /releases/2.3/user/src/com/google/gwt/user/server/rpc/XsrfProtectedServiceServlet.java Tue Apr 19 08:53:49 2011
@@ -63,6 +63,16 @@
   public XsrfProtectedServiceServlet(String sessionCookieName) {
     this.sessionCookieName = sessionCookieName;
   }
+
+  public XsrfProtectedServiceServlet(Object delegate) {
+    this(delegate, null);
+  }
+
+  public XsrfProtectedServiceServlet(Object delegate,
+      String sessionCookieName) {
+    super(delegate);
+    this.sessionCookieName = sessionCookieName;
+  }

   @Override
   public void init() throws ServletException {
=======================================
--- /releases/2.3/user/src/com/google/gwt/user/server/rpc/XsrfTokenServiceServlet.java Mon Feb 28 10:45:39 2011 +++ /releases/2.3/user/src/com/google/gwt/user/server/rpc/XsrfTokenServiceServlet.java Tue Apr 19 08:53:49 2011
@@ -94,7 +94,7 @@
  *   public void onSuccess(XsrfToken result) {
* MyRpcServiceAsync rpc = (MyRpcServiceAsync)GWT.create(MyRpcService.class);
  *     ((HasRpcToken) rpc).setRpcToken(result);
- *     // make XSRF protection RPC calls using
+ *     // make XSRF protected RPC call
  *     rpc.doStuff(new AsyncCallback<Void>() {
  *       // ...
  *     });

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to