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

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

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

Request.restoreParameters介绍

暂无

代码示例

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

@Override
public Map<String, String[]> getParameterMap()
{
  if (!_paramsExtracted)
    extractParameters();
  if (_parameters == null)
    _parameters = restoreParameters();
  return Collections.unmodifiableMap(_parameters.toStringArrayMap());
}

代码示例来源: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: at.bestsolution.efxclipse.eclipse/org.eclipse.jetty.server

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

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

@Override
public Enumeration<String> getParameterNames()
{
  if (!_paramsExtracted)
    extractParameters();
  if (_parameters == null)
    _parameters = restoreParameters();
  return Collections.enumeration(_parameters.keySet());
}

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

@Override
public Map<String, String[]> getParameterMap()
{
  if (!_paramsExtracted)
    extractParameters();
  if (_parameters == null)
    restoreParameters();
  return Collections.unmodifiableMap(_parameters.toStringArrayMap());
}

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

@Override
public Enumeration<String> getParameterNames()
{
  if (!_paramsExtracted)
    extractParameters();
  if (_parameters == null)
    restoreParameters();
  return Collections.enumeration(_parameters.keySet());
}

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

@Override
public String getParameter(String name)
{
  if (!_paramsExtracted)
    extractParameters();
  if (_parameters == null)
    _parameters = restoreParameters();
  return _parameters.getValue(name,0);
}

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

@Override
public String getParameter(String name)
{
  if (!_paramsExtracted)
    extractParameters();
  if (_parameters == null)
    restoreParameters();
  return _parameters.getValue(name,0);
}

代码示例来源: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();
}

相关文章

Request类方法