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
파일 보기 프로젝트 열기: pradosoft/prado

보호된 프로퍼티들

프로퍼티 타입 설명
$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