Class PHRUTS_RequestDispatcher

Description

Defines an object that receives requests from the client and sends them to any resource (such as a HTML or PHP file) on the server.

  • author: John WILDENAUER <jwilde@users.sourceforge.net> (PHP4 port of Struts)
  • author: Olivier HENRY <oliv.henry@gmail.com> (PHP5 port of Struts)
  • version: $Id: PHRUTS_RequestDispatcher.php,v 1.1 2008/05/21 15:16:12 ohenry Exp $
  • copyright: Copyright PHruts 2008

Located in /action/PHRUTS_RequestDispatcher.php (line 31)


	
			
Direct descendents
Class Description
PHRUTS_SmartyDispatcher Defines an object that receives requests from the client and sends them to smarty resource on the server.
Variable Summary
Method Summary
PHRUTS_RequestDispatcher __construct ( $context, string $requestURI)
string getRequestURI ()
void setRequestURI (string $requestURI)
void __wakeup ()
Variables
static Logger $log = null (line 37)

Commons Logging instance.

  • access: protected
PHRUTS_ServiceContext $context = null (line 44)

The context this PHRUTS_RequestDispatcher is associated with.

  • access: protected
string $requestURI = null (line 51)

The request URI for this PHRUTS_RequestDispatcher.

  • access: protected
Methods
Constructor __construct (line 61)

Construct a new instance of this class, configured according to the specified parameters.

  • access: public
PHRUTS_RequestDispatcher __construct ( $context, string $requestURI)
  • PHRUTS_ServiceContext $context: The context this PHRUTS_RequestDispatcher is associated with
  • string $requestURI: The request URI for this PHRUTS_RequestDispatcher

Redefined in descendants as:
doForward (line 97)

Forward this request and response to another resource for processing.

  • access: public
void doForward (PHRUTS_HttpServiceRequest $request, PHRUTS_HttpServiceResponse $response)
doInclude (line 121)

Include the response from another resource in the current response.

  • access: public
void doInclude (PHRUTS_HttpServiceRequest $request, PHRUTS_HttpServiceResponse $response)
getRequestURI (line 78)
  • access: public
string getRequestURI ()
invoke (line 136)

Ask the resource represented by this PHRUTS_RequestDispatcher to process the associated request, and create (or append to) the associated response.

  • todo: Manage exception if the resource doesn't exist.
  • access: protected
void invoke (PHRUTS_HttpServiceRequest $request, PHRUTS_HttpServiceResponse $response)

Redefined in descendants as:
setRequestURI (line 85)
  • access: public
void setRequestURI (string $requestURI)
  • string $requestURI
__wakeup (line 69)
  • access: public
void __wakeup ()

Documentation generated on Sat, 31 May 2008 15:46:29 +0200 by phpDocumentor 1.4.1