A Servlet that handles RPC requests.
Requests normally come in at "/rpc?ServiceName.Method".
|
NEW() @public | Create a new RpcServlet.
|
|
$init() @public |
|
$addHandler(rpcInfo, handler) @public | Set the handler function to call for RPC call rpc
|
|
$serve(context)
bool @public | Handle a request:
Check that it starts with "rpc?name=ServiceName.method"
Check that the service name matches "ServiceName"
Find a handler for "method" and call it.
|
|
Inherited from HTTP.Servlet:
|
|
$setAllPaths(allPaths) @public | Set whether this Servlet handles all paths.
|
|
$addPath(path) @public | Add a path that this servlet will serve for.
|
|
$handle(context)
bool @public | Check if this servlet wants to serve context.request.
|
|
$setMimeType(type) @public | Set the MIME type to be used in the response for this Servlet.
|
|
$filter(context)
bool @public | Filter context.request, possibly changing context.
|
|