ReverseProxy
extends Server
in package
Table of Contents
Properties
- $client : Client
- $execute_any_call : bool
Methods
- __construct() : mixed
- Override constructor: we always need a client object to be used for communicating with remote server, and have no dispatch map of ours.
- acquireServerMethods() : int|false
- Add to dispatch map of this server some (or all) of the methods exposed by a remote server.
- doProxy() : mixed
- execute() : Response
- Override execute function, to add support for both modes of operation: 1 - proxy ANY call to remote server 2 - proxy only selected methods to remote server
- methodNameCallback() : mixed
Properties
$client
public
Client
$client
= null
$execute_any_call
public
bool
$execute_any_call
= true
Methods
__construct()
Override constructor: we always need a client object to be used for communicating with remote server, and have no dispatch map of ours.
public
__construct(Client $client[, bool $serviceNow = true ]) : mixed
Parameters
- $client : Client
- $serviceNow : bool = true
acquireServerMethods()
Add to dispatch map of this server some (or all) of the methods exposed by a remote server.
public
acquireServerMethods([string|array<string|int, string> $methodList = null ]) : int|false
Parameters
- $methodList : string|array<string|int, string> = null
Tags
Return values
int|false —false on error, or the number of methods proxied
doProxy()
public
doProxy(mixed $req) : mixed
Parameters
- $req : mixed
execute()
Override execute function, to add support for both modes of operation: 1 - proxy ANY call to remote server 2 - proxy only selected methods to remote server
public
execute(mixed $req[, array<string|int, mixed> $params = null ][, array<string|int, mixed> $paramTypes = null ]) : Response
Parameters
- $req : mixed
-
either a Request obj or a method name
- $params : array<string|int, mixed> = null
-
array with method parameters as php types (if m is method name only)
- $paramTypes : array<string|int, mixed> = null
-
array with xmlrpc types of method parameters (if m is method name only)
Tags
Return values
ResponsemethodNameCallback()
public
methodNameCallback(mixed $methodName, mixed $xmlParser[, mixed $parser = null ]) : mixed
Parameters
- $methodName : mixed
- $xmlParser : mixed
- $parser : mixed = null