org.eclipse.jetty.util.MultiMap.containsKey()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(5.3k)|赞(0)|评价(0)|浏览(154)

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

MultiMap.containsKey介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.jetty/jetty-util

/**
 * Merge values.
 * 
 * @param map
 *            the map to overlay on top of this one, merging together values if needed.
 * @return true if an existing key was merged with potentially new values, false if either no change was made, or there were only new keys.
 */
public boolean addAllValues(MultiMap<V> map)
{
  boolean merged = false;
  if ((map == null) || (map.isEmpty()))
  {
    // done
    return merged;
  }
  for (Map.Entry<String, List<V>> entry : map.entrySet())
  {
    String name = entry.getKey();
    List<V> values = entry.getValue();
    if (this.containsKey(name))
    {
      merged = true;
    }
    this.addValues(name,values);
  }
  return merged;
}

代码示例来源:origin: apache/incubator-wave

@Override
 public void handle(Callback[] callbacks) throws UnsupportedCallbackException {
  for (Callback c : callbacks) {
   if (c instanceof NameCallback) {
    if (parameters.containsKey(ADDRESS_FIELD)) {
     ((NameCallback) c).setName(parameters.getString(ADDRESS_FIELD));
    }
   } else if (c instanceof PasswordCallback) {
    if (parameters.containsKey(PASSWORD_FIELD)) {
     String password = parameters.getString(PASSWORD_FIELD);
     ((PasswordCallback) c).setPassword(password.toCharArray());
    }
   } else {
    throw new UnsupportedCallbackException(c);
   }
  }
 }
}

代码示例来源:origin: Nextdoor/bender

/**
 * Merge values.
 * 
 * @param map
 *            the map to overlay on top of this one, merging together values if needed.
 * @return true if an existing key was merged with potentially new values, false if either no change was made, or there were only new keys.
 */
public boolean addAllValues(MultiMap<V> map)
{
  boolean merged = false;
  if ((map == null) || (map.isEmpty()))
  {
    // done
    return merged;
  }
  for (Map.Entry<String, List<V>> entry : map.entrySet())
  {
    String name = entry.getKey();
    List<V> values = entry.getValue();
    if (this.containsKey(name))
    {
      merged = true;
    }
    this.addValues(name,values);
  }
  return merged;
}

代码示例来源:origin: jenkinsci/winstone

/**
 * Merge values.
 * 
 * @param map
 *            the map to overlay on top of this one, merging together values if needed.
 * @return true if an existing key was merged with potentially new values, false if either no change was made, or there were only new keys.
 */
public boolean addAllValues(MultiMap<V> map)
{
  boolean merged = false;
  if ((map == null) || (map.isEmpty()))
  {
    // done
    return merged;
  }
  for (Map.Entry<String, List<V>> entry : map.entrySet())
  {
    String name = entry.getKey();
    List<V> values = entry.getValue();
    if (this.containsKey(name))
    {
      merged = true;
    }
    this.addValues(name,values);
  }
  return merged;
}

代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9

/**
 * Merge values.
 * 
 * @param the
 *            map to overlay on top of this one, merging together values if needed.
 * @return true if an existing key was merged with potentially new values, false if either no change was made, or there were only new keys.
 */
public boolean addAllValues(MultiMap<V> map)
{
  boolean merged = false;
  if ((map == null) || (map.isEmpty()))
  {
    // done
    return merged;
  }
  for (Map.Entry<String, List<V>> entry : map.entrySet())
  {
    String name = entry.getKey();
    List<V> values = entry.getValue();
    if (this.containsKey(name))
    {
      merged = true;
    }
    this.addValues(name,values);
  }
  return merged;
}

代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9

/**
 * Merge values.
 * 
 * @param the
 *            map to overlay on top of this one, merging together values if needed.
 * @return true if an existing key was merged with potentially new values, false if either no change was made, or there were only new keys.
 */
public boolean addAllValues(MultiMap<V> map)
{
  boolean merged = false;
  if ((map == null) || (map.isEmpty()))
  {
    // done
    return merged;
  }
  for (Map.Entry<String, List<V>> entry : map.entrySet())
  {
    String name = entry.getKey();
    List<V> values = entry.getValue();
    if (this.containsKey(name))
    {
      merged = true;
    }
    this.addValues(name,values);
  }
  return merged;
}

代码示例来源:origin: Nextdoor/bender

for (Map.Entry<String, List<String>> entry : mergedQueryParams.entrySet())
  if (newQueryParams.containsKey(entry.getKey()))
    continue;
  for (String value : entry.getValue())

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-webapp

if (parameters.containsKey(name))
  merge_old_query = true;
  if (!overridden_new_query.containsKey(name))

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-all-server

if (parameters.containsKey(name))
  merge_old_query = true;
  if (!overridden_new_query.containsKey(name))

代码示例来源:origin: org.eclipse.jetty/server

if (parameters.containsKey(name))
  merge_old_query = true;
  if (!overridden_new_query.containsKey(name))

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-server

if (parameters.containsKey(name))
  merge_old_query = true;
  if (!overridden_new_query.containsKey(name))

代码示例来源:origin: org.eclipse.jetty.aggregate/jetty-plus

if (parameters.containsKey(name))
  merge_old_query = true;
  if (!overridden_new_query.containsKey(name))

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jetty.server

for (Map.Entry<String, List<String>> entry : mergedQueryParams.entrySet())
  if (newQueryParams!=null && newQueryParams.containsKey(entry.getKey()))
    continue;
  for (String value : entry.getValue())

代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9

if (!overridden_new_query.containsKey(name))

代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9

if (!overridden_new_query.containsKey(name))

代码示例来源:origin: jenkinsci/winstone

for (Map.Entry<String, List<String>> entry : mergedQueryParams.entrySet())
  if (newQueryParams!=null && newQueryParams.containsKey(entry.getKey()))
    continue;
  for (String value : entry.getValue())

相关文章