package com.l7tech.gateway.common.spring.remoting.http;

import com.l7tech.util.InetAddressUtil;
import java.util.regex.Matcher;
import org.springframework.remoting.httpinvoker.HttpInvokerClientConfiguration;

class m implements HttpInvokerClientConfiguration {
   private final HttpInvokerClientConfiguration a;
   private final String b;
   private final int c;
   final SimpleBrowserHttpInvokerRequestExecutor this$0;

   private m(SimpleBrowserHttpInvokerRequestExecutor var1, HttpInvokerClientConfiguration var2, String var3, int var4) {
      this.this$0 = var1;
      this.a = var2;
      this.b = var3;
      this.c = var4;
   }

   public String getCodebaseUrl() {
      return this.a(this.a.getCodebaseUrl());
   }

   public String getServiceUrl() {
      return this.a(this.a.getServiceUrl());
   }

   private String a(String var1) {
      Matcher var2 = this.this$0.b.matcher(var1);
      return var2.replaceFirst(InetAddressUtil.getHostForUrl(this.b) + ":" + this.c);
   }
}
