- Timestamp:
- Oct 20, 2013, 11:37:45 AM (11 years ago)
- Location:
- trunk/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/ws_core.inc.php
r23261 r25025 137 137 * Abstract base class for request handlers. 138 138 */ 139 class PwgRequestHandler139 abstract class PwgRequestHandler 140 140 { 141 141 /** Virtual abstract method. Decodes the request (GET or POST) handles the 142 142 * method invocation as well as response sending. 143 143 */ 144 function handleRequest(&$server) { assert(false); }144 abstract function handleRequest(&$service); 145 145 } 146 146 … … 149 149 * Base class for web service response encoder. 150 150 */ 151 class PwgResponseEncoder151 abstract class PwgResponseEncoder 152 152 { 153 153 /** encodes the web service response to the appropriate output format 154 154 * @param response mixed the unencoded result of a service method call 155 155 */ 156 function encodeResponse($response) { assert(false); }156 abstract function encodeResponse($response); 157 157 158 158 /** default "Content-Type" http header for this kind of response format 159 159 */ 160 function getContentType() { assert(false); }160 abstract function getContentType(); 161 161 162 162 /** -
trunk/include/ws_protocols/rest_handler.php
r19703 r25025 22 22 // +-----------------------------------------------------------------------+ 23 23 24 class PwgRestRequestHandler 24 class PwgRestRequestHandler extends PwgRequestHandler 25 25 { 26 26 function handleRequest(&$service)
Note: See TracChangeset
for help on using the changeset viewer.