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

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

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

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()));

相关文章

Request类方法