- Timestamp:
- 03/29/08 21:35:39 (7 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/net/stubbles/ipo/response/stubResponse.php
r1223 r1471 23 23 */ 24 24 public function clear(); 25 25 26 /** 27 * sets the http version 28 * 29 * The version should be a string like '1.0' or '1.1'. 30 * 31 * @param string $version 32 */ 33 public function setVersion($version); 34 35 /** 36 * returns the http version 37 * 38 * @return string 39 */ 40 public function getVersion(); 41 42 /** 43 * sets the status code to be send 44 * 45 * This needs only to be done if another status code then the default one 46 * should be send. 47 * 48 * @param int $statusCode 49 */ 50 public function setStatusCode($statusCode); 51 52 /** 53 * returns status code to be send 54 * 55 * If return value is <null> the default one will be send. 56 * 57 * @return int 58 */ 59 public function getStatusCode(); 60 26 61 /** 27 62 * add a header to the response … … 31 66 */ 32 67 public function addHeader($name, $value); 33 68 34 69 /** 35 70 * returns the list of headers … … 38 73 */ 39 74 public function getHeaders(); 40 75 41 76 /** 42 77 * add a cookie to the response … … 45 80 */ 46 81 public function setCookie(stubCookie $cookie); 47 82 48 83 /** 49 84 * returns the list of cookies 50 85 * 51 * @return array<st ubCookie>86 * @return array<string,stubCookie> 52 87 */ 53 88 public function getCookies(); 54 89 55 90 /** 56 91 * write data into the response … … 59 94 */ 60 95 public function write($data); 61 96 62 97 /** 63 98 * returns the data written so far … … 66 101 */ 67 102 public function getData(); 68 103 69 104 /** 70 105 * replaces the data written so far with the new data … … 73 108 */ 74 109 public function replaceData($data); 75 110 76 111 /** 77 112 * send the response out
