PHP Класс Prado\Web\Services\TRpcServer

TRpcServer is a class TRpcServer is the base class used to creare a server to be used in conjunction with {@link TRpcService}. The role of TRpcServer is to be an intermediate, moving data between the service and the provider. This base class should suit the most common needs, but can be sublassed for logging and debugging purposes, or to filter and modify the request/response on the fly.
С версии: 3.2
Автор: Robin J. Rogge ([email protected])
Наследование: extends Prado\TModule
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$handler instance

Открытые методы

Метод Описание
__construct ( TRpcProtocol $protocolHandler ) Constructor
addRpcMethod ( string $methodName, array $methodDetails ) Registers the method in the protocol handler
getPayload ( ) : string Retrieves the request payload
processRequest ( ) : string Passes the request payload to the protocol handler and returns the result

Описание методов

__construct() публичный Метод

Constructor
public __construct ( TRpcProtocol $protocolHandler )
$protocolHandler TRpcProtocol instance

addRpcMethod() публичный Метод

Registers the method in the protocol handler
public addRpcMethod ( string $methodName, array $methodDetails )
$methodName string
$methodDetails array

getPayload() публичный Метод

Retrieves the request payload
public getPayload ( ) : string
Результат string request payload

processRequest() публичный Метод

Passes the request payload to the protocol handler and returns the result
public processRequest ( ) : string
Результат string rpc response

Описание свойств

$handler защищенное свойство

instance
protected $handler