class RpcServer (View source)

The RpcServer main class.

Constants

XMLRPC

Capabilities collector

JSONRPC

Capabilities collector

Methods

__construct($protocol, LoggerInterface $logger = null)

Class constructor

setProtocol(string $protocol)

Set RPC protocol (json or xml)

string
getProtocol()

Get RPC protocol

setPayload($payload)

Set request payload, raw format

string
getPayload()

Get request payload

setEncoding($encoding)

No description

getEncoding()

No description

setEncryption(string $key)

Set encryption key; this will enable the NOT-STANDARD payload encryption

string
getEncryption()

Get the ecryption key or null if no encryption is selected

capabilities() deprecated

Get capabilities object

getCapabilities() deprecated

Get capabilities object

methods() deprecated

Get methods object

getMethods()

Get methods object

errors() deprecated

Get errors object

getErrors()

Get errors object

string
serve()

Serve request

Details

__construct($protocol, LoggerInterface $logger = null)

Class constructor

Parameters

$protocol
LoggerInterface $logger

Exceptions

Exception
InvalidArgumentException

RpcServer setProtocol(string $protocol)

Set RPC protocol (json or xml)

Parameters

string $protocol

Return Value

RpcServer

Exceptions

InvalidArgumentException

string getProtocol()

Get RPC protocol

Return Value

string

RpcServer setPayload($payload)

Set request payload, raw format

Parameters

$payload

Return Value

RpcServer

string getPayload()

Get request payload

Return Value

string

setEncoding($encoding)

Parameters

$encoding

getEncoding()

RpcServer setEncryption(string $key)

Set encryption key; this will enable the NOT-STANDARD payload encryption

Parameters

string $key The encryption key

Return Value

RpcServer

Exceptions

InvalidArgumentException

string getEncryption()

Get the ecryption key or null if no encryption is selected

Return Value

string

Capabilities capabilities() deprecated

deprecated

Get capabilities object

Capabilities getCapabilities() deprecated

deprecated

Get capabilities object

Methods methods() deprecated

deprecated

Get methods object

Return Value

Methods

See also

Parameters::getMethods

Methods getMethods()

Get methods object

Return Value

Methods

Errors errors() deprecated

deprecated

Get errors object

Return Value

Errors

See also

Parameters::getErrors

Errors getErrors()

Get errors object

Return Value

Errors

string serve()

Serve request

Return Value

string

Exceptions

Exception