Revision: 888
          http://stripes.svn.sourceforge.net/stripes/?rev=888&view=rev
Author:   bengunter
Date:     2008-04-18 21:27:26 -0700 (Fri, 18 Apr 2008)

Log Message:
-----------
Fixed STS-525. There are now public getters and protected setters for the 
request, response, and context objects associated with the round trip.

Modified Paths:
--------------
    trunk/stripes/src/net/sourceforge/stripes/mock/MockRoundtrip.java

Modified: trunk/stripes/src/net/sourceforge/stripes/mock/MockRoundtrip.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/mock/MockRoundtrip.java   
2008-04-19 04:15:47 UTC (rev 887)
+++ trunk/stripes/src/net/sourceforge/stripes/mock/MockRoundtrip.java   
2008-04-19 04:27:26 UTC (rev 888)
@@ -119,12 +119,36 @@
         setSourcePage(DEFAULT_SOURCE_PAGE);
     }
 
-    /** Provides access to the request when direct access is needed. */
-    public MockHttpServletRequest getRequest() { return this.request; }
+    /** Get the servlet request object to be used by this round trip */
+    public MockHttpServletRequest getRequest() {
+        return request;
+    }
 
-    /** Provides access to the response when direct access is needed. */
-    public MockHttpServletResponse getResponse() { return this.response; }
+    /** Set the servlet request object to be used by this round trip */
+    protected void setRequest(MockHttpServletRequest request) {
+        this.request = request;
+    }
 
+    /** Get the servlet response object to be used by this round trip */
+    public MockHttpServletResponse getResponse() {
+        return response;
+    }
+
+    /** Set the servlet response object to be used by this round trip */
+    protected void setResponse(MockHttpServletResponse response) {
+        this.response = response;
+    }
+
+    /** Get the ActionBean context to be used by this round trip */
+    public MockServletContext getContext() {
+        return context;
+    }
+
+    /** Set the ActionBean context to be used by this round trip */
+    protected void setContext(MockServletContext context) {
+        this.context = context;
+    }
+
     /**
      * Sets the named request parameter to the value or values provided. Any 
existing values are
      * wiped out and replaced with the value(s) provided.


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to