com.alibaba.dubbo.common.URL.clearParameters()方法的使用及代码示例

x33g5p2x  于2022-01-31 转载在 其他  
字(4.5k)|赞(0)|评价(0)|浏览(82)

本文整理了Java中com.alibaba.dubbo.common.URL.clearParameters()方法的一些代码示例,展示了URL.clearParameters()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。URL.clearParameters()方法的具体详情如下:
包路径:com.alibaba.dubbo.common.URL
类名称:URL
方法名:clearParameters

URL.clearParameters介绍

暂无

代码示例

代码示例来源:origin: linux-china/dubbo3

return remoteUrl.clearParameters().addParameters(map);

代码示例来源:origin: linux-china/dubbo3

return remoteUrl.clearParameters().addParameters(map);

代码示例来源:origin: net.jahhan/dubbo-cluster

return remoteUrl.clearParameters().addParameters(map);

代码示例来源:origin: com.alibaba/dubbo

return remoteUrl.clearParameters().addParameters(map);

代码示例来源:origin: com.alibaba/dubbo-cluster

return remoteUrl.clearParameters().addParameters(map);

代码示例来源:origin: com.alibaba/dubbo-registry-api

public RegistryDirectory(Class<T> serviceType, URL url) {
  super(url);
  if (serviceType == null)
    throw new IllegalArgumentException("service type is null.");
  if (url.getServiceKey() == null || url.getServiceKey().length() == 0)
    throw new IllegalArgumentException("registry serviceKey is null.");
  this.serviceType = serviceType;
  this.serviceKey = url.getServiceKey();
  this.queryMap = StringUtils.parseQueryString(url.getParameterAndDecoded(Constants.REFER_KEY));
  this.overrideDirectoryUrl = this.directoryUrl = url.setPath(url.getServiceInterface()).clearParameters().addParameters(queryMap).removeParameter(Constants.MONITOR_KEY);
  String group = directoryUrl.getParameter(Constants.GROUP_KEY, "");
  this.multiGroup = group != null && ("*".equals(group) || group.contains(","));
  String methods = queryMap.get(Constants.METHODS_KEY);
  this.serviceMethods = methods == null ? null : Constants.COMMA_SPLIT_PATTERN.split(methods);
}

代码示例来源:origin: com.alibaba/dubbo

public RegistryDirectory(Class<T> serviceType, URL url) {
  super(url);
  if (serviceType == null)
    throw new IllegalArgumentException("service type is null.");
  if (url.getServiceKey() == null || url.getServiceKey().length() == 0)
    throw new IllegalArgumentException("registry serviceKey is null.");
  this.serviceType = serviceType;
  this.serviceKey = url.getServiceKey();
  this.queryMap = StringUtils.parseQueryString(url.getParameterAndDecoded(Constants.REFER_KEY));
  this.overrideDirectoryUrl = this.directoryUrl = url.setPath(url.getServiceInterface()).clearParameters().addParameters(queryMap).removeParameter(Constants.MONITOR_KEY);
  String group = directoryUrl.getParameter(Constants.GROUP_KEY, "");
  this.multiGroup = group != null && ("*".equals(group) || group.contains(","));
  String methods = queryMap.get(Constants.METHODS_KEY);
  this.serviceMethods = methods == null ? null : Constants.COMMA_SPLIT_PATTERN.split(methods);
}

代码示例来源:origin: remoting/dubbox

public RegistryDirectory(Class<T> serviceType, URL url) {
  super(url);
  if(serviceType == null )
    throw new IllegalArgumentException("service type is null.");
  if(url.getServiceKey() == null || url.getServiceKey().length() == 0)
    throw new IllegalArgumentException("registry serviceKey is null.");
  this.serviceType = serviceType;
  this.serviceKey = url.getServiceKey();
  this.queryMap = StringUtils.parseQueryString(url.getParameterAndDecoded(Constants.REFER_KEY));
  this.overrideDirectoryUrl = this.directoryUrl = url.setPath(url.getServiceInterface()).clearParameters().addParameters(queryMap).removeParameter(Constants.MONITOR_KEY);
  String group = directoryUrl.getParameter( Constants.GROUP_KEY, "" );
  this.multiGroup = group != null && ("*".equals(group) || group.contains( "," ));
  String methods = queryMap.get(Constants.METHODS_KEY);
  this.serviceMethods = methods == null ? null : Constants.COMMA_SPLIT_PATTERN.split(methods);
}

代码示例来源:origin: remoting/dubbox

public RegistryDirectory(Class<T> serviceType, URL url) {
  super(url);
  if(serviceType == null )
    throw new IllegalArgumentException("service type is null.");
  if(url.getServiceKey() == null || url.getServiceKey().length() == 0)
    throw new IllegalArgumentException("registry serviceKey is null.");
  this.serviceType = serviceType;
  this.serviceKey = url.getServiceKey();
  this.queryMap = StringUtils.parseQueryString(url.getParameterAndDecoded(Constants.REFER_KEY));
  this.overrideDirectoryUrl = this.directoryUrl = url.setPath(url.getServiceInterface()).clearParameters().addParameters(queryMap).removeParameter(Constants.MONITOR_KEY);
  String group = directoryUrl.getParameter( Constants.GROUP_KEY, "" );
  this.multiGroup = group != null && ("*".equals(group) || group.contains( "," ));
  String methods = queryMap.get(Constants.METHODS_KEY);
  this.serviceMethods = methods == null ? null : Constants.COMMA_SPLIT_PATTERN.split(methods);
}

相关文章

微信公众号

最新文章

更多