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