nanoserv
[ class tree: nanoserv ] [ index: nanoserv ] [ all elements ]

Class: NS_JSON_RPC_Service_Handler

Source Location: /handlers/NS_JSON_RPC_Service_Handler.php

Class Overview

NS_Handler
   |
   --NS_Connection_Handler
      |
      --NS_HTTP_Service_Handler
         |
         --NS_JSON_RPC_Service_Handler

JSON-RPC Service handler class


Author(s):

Variables

Methods


Child classes:

NS_Direct_JSON_RPC_Service_Handler
Direct JSON-RPC server class
NS_Persistent_JSON_RPC_Service_Handler
Persistent JSON-RPC server class

Inherited Constants

Inherited Variables

Inherited Methods

Class: NS_HTTP_Service_Handler

NS_HTTP_Service_Handler::__construct()
NS_HTTP_Service_Handler::Handle_Request()
NS_HTTP_Service_Handler::on_Read()

Class: NS_Connection_Handler

NS_Connection_Handler::Connect()
Connect
NS_Connection_Handler::Disconnect()
Disconnect
NS_Connection_Handler::on_Accept()
Event called on received connection
NS_Connection_Handler::on_Connect()
Event called on established connection
NS_Connection_Handler::on_Connect_Fail()
Event called on failed connection
NS_Connection_Handler::on_Disconnect()
Event called on disconnection
NS_Connection_Handler::on_Fork_Done()
Event called after forking, both on master and child processes
NS_Connection_Handler::on_Fork_Prepare()
Event called before forking
NS_Connection_Handler::on_Read()
Event called on data reception
NS_Connection_Handler::Write()
Send data over the connection
NS_Connection_Handler::Write_Stream()
Send open stream over the connection

Class: NS_Handler

NS_Handler::Set_Option()
Set a stream context option

Class Details

[line 39]
JSON-RPC Service handler class



Tags:

abstract:  


[ Top ]


Class Variables

$request_url =  ""

[line 45]

Request URL



Tags:

access:  protected

Type:   string


[ Top ]



Class Methods


method on_Call [line 103]

mixed on_Call( string $method, array $args)

Event called on JSON-RPC method call

The value returned by on_Call() will be sent back as the JSON-RPC method call response




Tags:

abstract:  
access:  public


Overridden in child classes as:

NS_Direct_JSON_RPC_Service_Handler::on_Call()
NS_Persistent_JSON_RPC_Service_Handler::on_Call()

Parameters:

string   $method  
array   $args  

[ Top ]

method on_Request [line 47]

void on_Request( $url)



Tags:

access:  public


Parameters:

   $url  

[ Top ]


Documentation generated on Thu, 10 May 2012 22:01:24 +0200 by phpDocumentor 1.4.4