[puntoengine] r97 committed - * Added HttpResponse methods...

0 views
Skip to first unread message

punto...@googlecode.com

unread,
Nov 1, 2011, 5:28:07 PM11/1/11
to punto...@googlegroups.com
Revision: 97
Author: jba...@gmail.com
Date: Tue Nov 1 14:27:07 2011
Log: * Added HttpResponse methods
* Added Controler response property and methods
http://code.google.com/p/puntoengine/source/detail?r=97

Modified:
/trunk/puntoengine/changelog
/trunk/puntoengine/core/http/HttpController.php
/trunk/puntoengine/core/http/HttpResponse.php

=======================================
--- /trunk/puntoengine/changelog Thu Jun 9 03:49:45 2011
+++ /trunk/puntoengine/changelog Tue Nov 1 14:27:07 2011
@@ -1,3 +1,7 @@
+Version 0.4.0
+ - New controller system against servlet system
+ - New Object class to base of all objects
+
Version 0.2.1
- Fixed a problem with virtual path autoprocessor when the path is a
root path same "/"
- Added files licenses for GPL3
=======================================
--- /trunk/puntoengine/core/http/HttpController.php Tue Nov 1 13:34:09 2011
+++ /trunk/puntoengine/core/http/HttpController.php Tue Nov 1 14:27:07 2011
@@ -21,6 +21,33 @@
* @since 0.4.0
*/
class HttpController extends Object {
-
+ /**
+ * Response for the web request
+ * @var HttpResponse
+ * @since 0.4.0
+ */
+ protected $response;
+
+
+
+ /**
+ * Return the request response
+ * @return HttpResponse Request response
+ * @since 0.4.0
+ */
+ public function getResponse() {
+ return $this->response;
+ }//getResponse
+
+
+
+ /**
+ * Set the response
+ * @param HttpResponse $response Request response
+ * @since 0.4.0
+ */
+ public function setResponse(HttpResponse $response) {
+ $this->response = $response;
+ }//setResponse
}//HttpController
?>
=======================================
--- /trunk/puntoengine/core/http/HttpResponse.php Tue Nov 1 13:52:07 2011
+++ /trunk/puntoengine/core/http/HttpResponse.php Tue Nov 1 14:27:07 2011
@@ -79,5 +79,15 @@
public function setAction($action) {
$this->action = $action;
}//setAction
+
+
+
+ /**
+ * Process the response and draw or redirect, set the cookies, etc.
+ * @since 0.4.0
+ */
+ public function process() {
+ throw new NotImplementedException(__CLASS__ . '::' . __METHOD__);
+ }//process
}//HttpResponse
?>

Reply all
Reply to author
Forward
0 new messages