Author: julien(a)jboss.com
Date: 2008-01-31 06:18:50 -0500 (Thu, 31 Jan 2008)
New Revision: 9682
Modified:
modules/portlet/trunk/test/src/main/java/org/jboss/portal/portlet/test/PortletController.java
Log:
added base class for controller response
Modified:
modules/portlet/trunk/test/src/main/java/org/jboss/portal/portlet/test/PortletController.java
===================================================================
---
modules/portlet/trunk/test/src/main/java/org/jboss/portal/portlet/test/PortletController.java 2008-01-31
11:14:00 UTC (rev 9681)
+++
modules/portlet/trunk/test/src/main/java/org/jboss/portal/portlet/test/PortletController.java 2008-01-31
11:18:50 UTC (rev 9682)
@@ -839,6 +839,26 @@
}
}
+ /**
+ * Must be used as base class for high level response provided by the controller that
+ * will be translated into something at the portal level. The goal is to avoid to
manipulate
+ * the HTTP response directly.
+ *
+ * The test bed will of course use the HTTP response but the Presentation Framework
will
+ * work differently.
+ *
+ * So we really need to abstract everything done with the HttpServletResponse and
*never* use
+ * it in the controller.
+ *
+ * Typical usage should be :
+ * ControllerResponse response = controller.invoker(ControllerRequest request);
+ *
+ */
+ static class ControllerResponse
+ {
+
+ }
+
static class ControllerRequest
{
/** . */
Show replies by date