Lines Matching +full:server +full:-
2 namespace IXR\Server;
14 class IntrospectionServer extends Server
22 $this->setCallbacks();
23 $this->setCapabilities();
24 $this->capabilities['introspection'] = [
28 $this->addCallback(
34 $this->addCallback(
38 'Returns a struct describing the XML-RPC specifications supported by this server'
40 $this->addCallback(
44 'Returns an array of available methods on this server'
46 $this->addCallback(
56 $this->callbacks[$method] = $callback;
57 $this->signatures[$method] = $args;
58 $this->help[$method] = $help;
68 // Over-rides default call method, adds signature check
69 if (!$this->hasMethod($methodname)) {
70 return new Error(-32601,
71 … 'server error. requested method "' . $this->message->methodName . '" not specified.');
73 $method = $this->callbacks[$methodname];
74 $signature = $this->signatures[$methodname];
79 return new Error(-32602, 'server error. wrong number of method parameters');
120 return new Error(-32602, 'server error. invalid method parameters');
123 // It passed the test - run the "real" method call
129 if (!$this->hasMethod($method)) {
130 … return new Error(-32601, 'server error. requested method "' . $method . '" not specified.');
133 $types = $this->signatures[$method];
169 return $this->help[$method];