本文整理了Java中org.eclipse.jetty.server.Request.getParameterMap
方法的一些代码示例,展示了Request.getParameterMap
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.getParameterMap
方法的具体详情如下:
包路径:org.eclipse.jetty.server.Request
类名称:Request
方法名:getParameterMap
暂无
代码示例来源: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: AsyncHttpClient/async-http-client
for (Entry<String, String[]> e : baseRequest.getParameterMap().entrySet()) {
response.addHeader("X-" + e.getKey(), URLEncoder.encode(e.getValue()[0], StandardCharsets.UTF_8.name()));
代码示例来源:origin: lsds/Saber
callback +
"(" +
mapper.writeValueAsString (q.getAnswer (baseRequest.getParameterMap())) +
")"
);
else
response.getWriter().println (
mapper.writeValueAsString (q.getAnswer (baseRequest.getParameterMap()))
);
callback +
"(" +
mapper.writeValueAsString (t[idx].getAnswer (baseRequest.getParameterMap())) +
")"
);
else
response.getWriter().println (
mapper.writeValueAsString (t[idx].getAnswer (baseRequest.getParameterMap()))
);
} else {
代码示例来源:origin: org.eclipse.jgit/org.eclipse.jgit.junit.http
AccessEvent(Request req, Response rsp) {
method = req.getMethod();
uri = req.getRequestURI();
requestHeaders = cloneHeaders(req);
parameters = clone(req.getParameterMap());
status = rsp.getStatus();
responseHeaders = cloneHeaders(rsp);
}
代码示例来源:origin: com.madgag/org.eclipse.jgit.junit.http
AccessEvent(final Request req, final Response rsp) {
method = req.getMethod();
uri = req.getRequestURI();
requestHeaders = cloneHeaders(req);
parameters = clone(req.getParameterMap());
status = rsp.getStatus();
responseHeaders = cloneHeaders(rsp);
}
代码示例来源:origin: org.apache.cxf.fediz/fediz-jetty9
baseRequest.getParameterMap();
session.setAttribute(J_POST, new MultiMap<String>(baseRequest.getQueryParameters()));
内容来源于网络,如有侵权,请联系作者删除!