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

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

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

MultiMap.getValues介绍

[英]Get multiple values. Single valued entries are converted to singleton lists.
[中]获取多个值。单值条目被转换为单值列表。

代码示例

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

/**
 * @see javax.servlet.http.Part#getHeaders(java.lang.String)
 */
@Override
public Collection<String> getHeaders(String name)
{
  return _headers.getValues(name);
}

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

/** Get a value from a multiple value.
 * If the value is not a multivalue, then index 0 retrieves the
 * value or null.
 * @param name The entry key.
 * @param i Index of element to get.
 * @return Unmodifieable List of values.
 */
public V getValue(String name,int i)
{
  List<V> vals = getValues(name);
  if(vals == null) {
    return null;
  }
  if (i==0 && vals.isEmpty()) {
    return null;
  }
  return vals.get(i);
}

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

/** 
 * @see javax.servlet.http.Part#getHeaders(java.lang.String)
 */
public Collection<String> getHeaders(String name)
{
  return _headers.getValues(name);
}

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

/** 
 * @see javax.servlet.http.Part#getHeaders(java.lang.String)
 */
public Collection<String> getHeaders(String name)
{
  return _headers.getValues(name);
}

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

@Override
public Collection<String> getHeaders(String name)
{
  return _headers.getValues(name);
}

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

/**
 * @see javax.servlet.http.Part#getHeaders(java.lang.String)
 */
@Override
public Collection<String> getHeaders(String name)
{
  return _headers.getValues(name);
}

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

/** 
 * @see javax.servlet.http.Part#getHeaders(java.lang.String)
 */
public Collection<String> getHeaders(String name)
{
  return _headers.getValues(name);
}

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

/**
 * @see javax.servlet.http.Part#getHeaders(java.lang.String)
 */
public Collection<String> getHeaders(String name)
{
  return _headers.getValues(name);
}

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

/**
 * @see javax.servlet.http.Part#getHeaders(java.lang.String)
 */
public Collection<String> getHeaders(String name)
{
  return _headers.getValues(name);
}

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

/**
 * @see javax.servlet.http.Part#getHeaders(java.lang.String)
 */
public Collection<String> getHeaders(String name)
{
  return _headers.getValues(name);
}

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

public List getClassNamesExtendingOrImplementing (String className)
{
  return _inheritanceMap.getValues(className);
}

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

public String[] getParameterValues(String name)
{
  if (!_paramsExtracted)
    extractParameters();
  List<Object> vals = _parameters.getValues(name);
  if (vals == null)
    return null;
  return vals.toArray(new String[vals.size()]);
}

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

public String[] getParameterValues(String name)
{
  if (!_paramsExtracted)
    extractParameters();
  List<Object> vals = _parameters.getValues(name);
  if (vals == null)
    return null;
  return vals.toArray(new String[vals.size()]);
}

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

@Override
public String[] getParameterValues(String name)
{
  List<String> vals = getParameters().getValues(name);
  if (vals == null)
    return null;
  return vals.toArray(new String[vals.size()]);
}

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

public String[] getParameterValues(String name)
{
  if (!_paramsExtracted)
    extractParameters();
  List<Object> vals = _parameters.getValues(name);
  if (vals == null)
    return null;
  return vals.toArray(new String[vals.size()]);
}

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

@Override
public String[] getParameterValues(String name)
{
  if (!_paramsExtracted)
    extractParameters();
  List<String> vals = _parameters.getValues(name);
  if (vals == null)
    return null;
  return vals.toArray(new String[vals.size()]);
}

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

@Override
public String[] getParameterValues(String name)
{
  if (!_paramsExtracted)
    extractParameters();
  List<String> vals = _parameters.getValues(name);
  if (vals == null)
    return null;
  return vals.toArray(new String[vals.size()]);
}

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

@Override
public String[] getParameterValues(String name)
{
  if (!_paramsExtracted)
    extractParameters();
  if (_parameters == null)
    _parameters = restoreParameters();
  List<String> vals = _parameters.getValues(name);
  if (vals == null)
    return null;
  return vals.toArray(new String[vals.size()]);
}

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

void addInheritedTypes (MultiMap classMap, ContainerInitializer initializer, List<String> applicableTypes)
{
  for (String s : applicableTypes)
  {
    //add the name of the class that extends or implements
    initializer.addApplicableTypeName(s);
    
    //walk the hierarchy and find all types that extend or implement it
    List<String> implementsOrExtends = (List<String>)classMap.getValues(s);
    if (implementsOrExtends != null && !implementsOrExtends.isEmpty())
      addInheritedTypes (classMap, initializer, implementsOrExtends);
  }
}

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

void addInheritedTypes (MultiMap classMap, ContainerInitializer initializer, List<String> applicableTypes)
{
  for (String s : applicableTypes)
  {
    //add the name of the class that extends or implements
    initializer.addApplicableTypeName(s);
    //walk the hierarchy and find all types that extend or implement it
    List<String> implementsOrExtends = (List<String>)classMap.getValues(s);
    if (implementsOrExtends != null && !implementsOrExtends.isEmpty())
      addInheritedTypes (classMap, initializer, implementsOrExtends);
  }
}

相关文章