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