Example #1
0
 @Override
 public void addServiceMethod(
     String methodName, String version, ServiceMethodHandler serviceMethodHandler) {
   serviceMethods.add(methodName);
   serviceHandlerMap.put(
       ServiceMethodHandler.methodWithVersion(methodName, version), serviceMethodHandler);
 }
Example #2
0
 @Override
 public boolean isValidMethodVersion(String methodName, String version) {
   return serviceHandlerMap.containsKey(
       ServiceMethodHandler.methodWithVersion(methodName, version));
 }
Example #3
0
 @Override
 public ServiceMethodHandler getServiceMethodHandler(String methodName, String version) {
   return serviceHandlerMap.get(ServiceMethodHandler.methodWithVersion(methodName, version));
 }