package com.l7tech.gateway.common.service;

import com.l7tech.common.io.DocumentReferenceProcessor.ResourceResolver;
import com.l7tech.wsdl.ResourceTrackingWSDLLocator;
import com.l7tech.wsdl.WsdlEntityResolver;
import java.io.IOException;

class f implements ResourceResolver {
   final String val$urlBase;
   final ClassLoader val$classLoader;
   final String val$resourceBase;
   final WsdlEntityResolver val$entityResolver;

   f(String var1, ClassLoader var2, String var3, WsdlEntityResolver var4) {
      this.val$urlBase = var1;
      this.val$classLoader = var2;
      this.val$resourceBase = var3;
      this.val$entityResolver = var4;
   }

   public String resolve(String var1) throws IOException {
      String var2 = var1;
      if (var2.startsWith(this.val$urlBase)) {
         var2 = var1.substring(this.val$urlBase.length());
      }

      String var3 = ServiceDocumentWsdlStrategy.a(this.val$classLoader, this.val$resourceBase, var2, this.val$entityResolver);
      return ResourceTrackingWSDLLocator.processResource(var1, var3, this.val$entityResolver.failOnMissing(), false, true);
   }
}
