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

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

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

MultiMap.size介绍

暂无

代码示例

代码示例来源:origin: jphp-group/jphp

@Signature
public Memory queryParameters() {
  request.getParameterMap();
  MultiMap<String> parameters = request.getQueryParameters();
  if (parameters != null) {
    ArrayMemory result = ArrayMemory.createHashed(parameters.size());
    for (Map.Entry<String, List<String>> entry : parameters.entrySet()) {
      List<String> value = entry.getValue();
      if (value == null || value.isEmpty()) {
        result.putAsKeyString(entry.getKey(), Memory.NULL);
      } else if (value.size() == 1) {
        result.putAsKeyString(entry.getKey(), StringMemory.valueOf(value.get(0)));
      } else {
        result.putAsKeyString(entry.getKey(), ArrayMemory.ofStringCollection(value));
      }
    }
    return result;
  } else {
    return new ArrayMemory().toConstant();
  }
}

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

HashMap<String,String[]> map = new HashMap<String,String[]>(size()*3/2)

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

if (maxKeys>0 && map.size()>maxKeys)
    throw new IllegalStateException(String.format("Form with too many keys [%d > %d]",map.size(),maxKeys));
  break;
throw new IllegalStateException(String.format("Form with too many keys [%d > %d]",map.size(),maxKeys));

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

if (maxKeys>0 && map.size()>maxKeys)
    throw new IllegalStateException(String.format("Form with too many keys [%d > %d]",map.size(),maxKeys));
break;

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

if (maxKeys>0 && map.size()>maxKeys)
    throw new IllegalStateException(String.format("Form with too many keys [%d > %d]",map.size(),maxKeys));
  break;
case '=':

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

HashMap<String,String[]> map = new HashMap<String,String[]>(size()*3/2)

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

HashMap<String,String[]> map = new HashMap<String,String[]>(size()*3/2)

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

HashMap<String,String[]> map = new HashMap<String,String[]>(size()*3/2)

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

HashMap<String,String[]> map = new HashMap<String,String[]>(size()*3/2)

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

private void restoreParameters()
{
  if (_queryParameters == null)
    extractQueryParameters();
  if (_queryParameters==NO_PARAMS || _queryParameters.size()==0)
    _parameters=_contentParameters;
  else if (_contentParameters==NO_PARAMS || _contentParameters.size()==0)
    _parameters=_queryParameters;
  else
  {
    _parameters = new MultiMap<>();
    _parameters.addAllValues(_queryParameters);
    _parameters.addAllValues(_contentParameters);
  }
}

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

if (maxKeys>0 && map.size()>maxKeys)
    throw new IllegalStateException(String.format("Form with too many keys [%d > %d]",map.size(),maxKeys));
  break;
case '=':

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

if (maxKeys>0 && map.size()>maxKeys)
    throw new IllegalStateException(String.format("Form with too many keys [%d > %d]",map.size(),maxKeys));
  break;
case '=':

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

if (_parameters != null && _parameters.size() > 0)

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

if (_parameters != null && _parameters.size() > 0)

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

while (itor.hasNext() && params.size() < _maxFormKeys)

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

while (itor.hasNext() && params.size() < _maxFormKeys)

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

if (_parameters != null && _parameters.size() > 0)

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

if (servletHolder != null && _filterNameMappings!=null && _filterNameMappings.size() > 0)
  if (_filterNameMappings.size() > 0)

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

UrlEncoded.decodeTo(query,parameters,baseRequest.getCharacterEncoding());
if (old_params!=null && old_params.size()>0)

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

UrlEncoded.decodeTo(query,parameters,baseRequest.getCharacterEncoding());
if (old_params!=null && old_params.size()>0)

相关文章