예제 #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));
 }