Class \Prado\Web\Services\TJsonRpcProtocol
TJsonRpcProtocol class
TJsonRpcProtocol is a class that implements JSON-Rpc protocol in TRpcService. Both version 1.0 and 2.0 of the specification are implemented, and the server will try to answer using the same version of the protocol used by the requesting client.
Class hierarchy
Author: Robin J. Rogge <rrogge@bigpoint.net>Author: Fabio Bas <ctrlaltca@gmail.com>
Since: 3.2
public
|
callApiMethod(string $methodName, array<string|int, mixed> $parameters) : mixed
Calls the callback handler for the given method
Overrides parent implementation to correctly handle error codes
|
public
|
|
public
|
createErrorResponse(TRpcException $exception) : string
Turns the given exception into an JSON RPC fault
|
public
|
|
public
|
|
public
|
addMethod, callApiMethod, callMethod, createErrorResponse, createResponseHeaders, decode, encode |