org.apache.shindig.protocol
Interface HandlerRegistry

All Known Implementing Classes:
DefaultHandlerRegistry

public interface HandlerRegistry

Registry of REST and RPC handlers for the set of available services


Method Summary
 void addHandlers(Set<Object> handlers)
          Add a set of handlers to the registry
 RestHandler getRestHandler(String path, String method)
           
 RpcHandler getRpcHandler(org.json.JSONObject rpc)
           
 Set<String> getSupportedRestServices()
           
 Set<String> getSupportedRpcServices()
           
 

Method Detail

addHandlers

void addHandlers(Set<Object> handlers)
Add a set of handlers to the registry

Parameters:
handlers -

getRpcHandler

RpcHandler getRpcHandler(org.json.JSONObject rpc)
Parameters:
rpc - The rpc to dispatch
Returns:
the handler

getRestHandler

RestHandler getRestHandler(String path,
                           String method)
Parameters:
path - Path of the service
method - The HTTP method
Returns:
the handler

getSupportedRestServices

Set<String> getSupportedRestServices()
Returns:
The list of available services

getSupportedRpcServices

Set<String> getSupportedRpcServices()
Returns:
The list of available services


Copyright © 2007-2012. All Rights Reserved.