本文整理了Java中org.eclipse.jetty.server.Request.restoreParameters
方法的一些代码示例,展示了Request.restoreParameters
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.restoreParameters
方法的具体详情如下:
包路径:org.eclipse.jetty.server.Request
类名称: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();
}
内容来源于网络,如有侵权,请联系作者删除!