本文整理了Java中org.eclipse.jetty.server.Request.getQueryParameters
方法的一些代码示例,展示了Request.getQueryParameters
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.getQueryParameters
方法的具体详情如下:
包路径:org.eclipse.jetty.server.Request
类名称:Request
方法名:getQueryParameters
暂无
代码示例来源:origin: jphp-group/jphp
@Signature
public String query(String name) {
request.getParameterMap();
MultiMap<String> queryParameters = request.getQueryParameters();
if (queryParameters != null) {
return queryParameters.getString(name);
} else {
return null;
}
}
代码示例来源: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.apache.cxf.fediz/fediz-jetty9
session.setAttribute(J_POST, new MultiMap<String>(baseRequest.getQueryParameters()));
代码示例来源:origin: Nextdoor/bender
final MultiMap<String> old_query_params=baseRequest.getQueryParameters();
try
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jetty.server
final MultiMap<String> old_query_params=baseRequest.getQueryParameters();
try
代码示例来源:origin: jenkinsci/winstone
final MultiMap<String> old_query_params=baseRequest.getQueryParameters();
try
代码示例来源:origin: Nextdoor/bender
final String old_path_info=baseRequest.getPathInfo();
final String old_query=baseRequest.getQueryString();
final MultiMap<String> old_query_params=baseRequest.getQueryParameters();
final Attributes old_attr=baseRequest.getAttributes();
final DispatcherType old_type=baseRequest.getDispatcherType();
代码示例来源:origin: jenkinsci/winstone
final String old_path_info=baseRequest.getPathInfo();
final MultiMap<String> old_query_params=baseRequest.getQueryParameters();
final Attributes old_attr=baseRequest.getAttributes();
final DispatcherType old_type=baseRequest.getDispatcherType();
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jetty.server
final String old_path_info=baseRequest.getPathInfo();
final MultiMap<String> old_query_params=baseRequest.getQueryParameters();
final Attributes old_attr=baseRequest.getAttributes();
final DispatcherType old_type=baseRequest.getDispatcherType();
内容来源于网络,如有侵权,请联系作者删除!