|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.shindig.protocol.DefaultHandlerRegistry
public class DefaultHandlerRegistry
Default implementation of HandlerRegistry. Bind to appropriately annotated handlers.
| Constructor Summary | |
|---|---|
DefaultHandlerRegistry(com.google.inject.Injector injector,
BeanJsonConverter beanJsonConverter,
HandlerExecutionListener executionListener)
Creates a dispatcher with the specified handler classes |
|
| Method Summary | |
|---|---|
void |
addHandlers(Set<Object> handlers)
Add handlers to the registry |
RestHandler |
getRestHandler(String path,
String method)
Get a REST request handler |
RpcHandler |
getRpcHandler(org.json.JSONObject rpc)
Get an RPC handler |
Set<String> |
getSupportedRestServices()
|
Set<String> |
getSupportedRpcServices()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Inject
public DefaultHandlerRegistry(com.google.inject.Injector injector,
BeanJsonConverter beanJsonConverter,
HandlerExecutionListener executionListener)
injector - Used to create instance if handler is a Class| Method Detail |
|---|
public void addHandlers(Set<Object> handlers)
addHandlers in interface HandlerRegistryhandlers - public RpcHandler getRpcHandler(org.json.JSONObject rpc)
getRpcHandler in interface HandlerRegistryrpc - The rpc to dispatch
public RestHandler getRestHandler(String path,
String method)
getRestHandler in interface HandlerRegistrypath - Path of the servicemethod - The HTTP method
public Set<String> getSupportedRestServices()
getSupportedRestServices in interface HandlerRegistrypublic Set<String> getSupportedRpcServices()
getSupportedRpcServices in interface HandlerRegistry
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||