org.eclipse.jetty.server.Request.extractQueryParameters()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(176)

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

Request.extractQueryParameters介绍

暂无

代码示例

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

public void extractParameters()
{
  if (_paramsExtracted)
    return;
  _paramsExtracted = true;
  // Extract query string parameters; these may be replaced by a forward()
  // and may have already been extracted by mergeQueryParameters().
  if (_queryParameters == null)
    extractQueryParameters();
  // Extract content parameters; these cannot be replaced by a forward()
  // once extracted and may have already been extracted by getParts() or
  // by a processing happening after a form-based authentication.
  if (_contentParameters == null)
    extractContentParameters();
  restoreParameters();
}

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

public void extractParameters()
{
  if (_paramsExtracted)
    return;
  _paramsExtracted = true;
  // Extract query string parameters; these may be replaced by a forward()
  // and may have already been extracted by mergeQueryParameters().
  if (_queryParameters == null)
    _queryParameters = extractQueryParameters();
  // Extract content parameters; these cannot be replaced by a forward()
  // once extracted and may have already been extracted by getParts() or
  // by a processing happening after a form-based authentication.
  if (_contentParameters == null)
    _contentParameters = extractContentParameters();
  _parameters = restoreParameters();
}

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

private MultiMap<String> restoreParameters()
{
  MultiMap<String> result = new MultiMap<>();
  if (_queryParameters == null)
    _queryParameters = extractQueryParameters();
  result.addAllValues(_queryParameters);
  result.addAllValues(_contentParameters);
  return result;
}

代码示例来源: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: jenkinsci/winstone

extractQueryParameters();

相关文章

Request类方法