org.glassfish.grizzly.http.server.Request.getParameterValues()方法的使用及代码示例

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

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

Request.getParameterValues介绍

[英]Return the defined values for the specified request parameter, if any; otherwise, return null.
[中]返回指定请求参数的定义值(如果有);否则,返回null

代码示例

代码示例来源:origin: org.glassfish.grizzly/grizzly-websockets-server

@Override
  public String[] run() {
    return request.getParameterValues(name);
  }           
}

代码示例来源:origin: javaee/grizzly

@Override
  public String[] run() {
    return request.getParameterValues(name);
  }           
}

代码示例来源:origin: javaee/grizzly

@Override
  public String[] run() {
    return request.getParameterValues(name);
  }           
}

代码示例来源:origin: javaee/grizzly

@Override
  public String[] run() {
    return request.getParameterValues(name);
  }           
}

代码示例来源:origin: javaee/grizzly

@Override
  public String[] run() {
    return request.getParameterValues(name);
  }           
}

代码示例来源:origin: javaee/grizzly

@Override
  public String[] run() {
    return request.getParameterValues(name);
  }           
}

代码示例来源:origin: org.glassfish.main.web/web-core

/**
   * Return the defined values for the specified request parameter, if any;
   * otherwise, return <code>null</code>.
   *
   * @param name Name of the desired request parameter
   */
  @Override
  public String[] getParameterValues(String name) {
/*
    if (!requestParametersParsed) {
      parseRequestParameters();
    }
*/
    processParameters();

    return coyoteRequest.getParameterValues(name);
  }

代码示例来源:origin: org.glassfish.main.core/kernel

/**
 *
 */
private void logRequest(Request req) {
  if (logger.isLoggable(Level.FINE)) {
    logger.log(Level.FINE, "AdminConsoleAdapter''s STATE IS: {0}", getStateMsg());
    logger.log(Level.FINE, "Current Thread: {0}", Thread.currentThread().getName());
    for (final String name : req.getParameterNames()) {
      final String values = Arrays.toString(req.getParameterValues(name));
      logger.log(Level.FINE, "Parameter name: {0} values: {1}", new Object[]{name, values});
    }
  }
}

代码示例来源:origin: javaee/grizzly

/**
 * {@inheritDoc}
 */
@SuppressWarnings("unchecked")
@Override
public String[] getParameterValues(String name) {
  if (request == null) {
    throw new IllegalStateException("Null request object");
  }
  String[] ret;
  /*
   * Clone the returned array only if there is a security manager
   * in place, so that performance won't suffer in the nonsecure case
   */
  if (System.getSecurityManager() != null){
    ret = AccessController.doPrivileged(
      new GetParameterValuePrivilegedAction(name));
    if (ret != null) {
      ret = ret.clone();
    }
  } else {
    ret = request.getParameterValues(name);
  }
  return ret;
}

代码示例来源:origin: javaee/grizzly

/**
 * Returns a {@link java.util.Map} of the parameters of this request.
 * Request parameters are extra information sent with the request.
 * For HTTP servlets, parameters are contained in the query string
 * or posted form data.
 *
 * @return A {@link java.util.Map} containing parameter names as keys
 *  and parameter values as map values.
 */
public Map<String,String[]> getParameterMap() {
  if (parameterMap.isLocked())
    return parameterMap;
  for (final String name : getParameterNames()) {
    final String[] values = getParameterValues(name);
    parameterMap.put(name, values);
  }
  parameterMap.setLocked(true);
  return parameterMap;
}

代码示例来源:origin: javaee/grizzly

/**
 * Returns a {@link java.util.Map} of the parameters of this request.
 * Request parameters are extra information sent with the request.
 * For HTTP servlets, parameters are contained in the query string
 * or posted form data.
 *
 * @return A {@link java.util.Map} containing parameter names as keys
 *  and parameter values as map values.
 */
public Map<String,String[]> getParameterMap() {
  if (parameterMap.isLocked())
    return parameterMap;
  for (final String name : getParameterNames()) {
    final String[] values = getParameterValues(name);
    parameterMap.put(name, values);
  }
  parameterMap.setLocked(true);
  return parameterMap;
}

代码示例来源:origin: org.glassfish.grizzly/grizzly-websockets-server

/**
 * Returns a {@link java.util.Map} of the parameters of this request.
 * Request parameters are extra information sent with the request.
 * For HTTP servlets, parameters are contained in the query string
 * or posted form data.
 *
 * @return A {@link java.util.Map} containing parameter names as keys
 *  and parameter values as map values.
 */
public Map<String,String[]> getParameterMap() {
  if (parameterMap.isLocked())
    return parameterMap;
  for (final String name : getParameterNames()) {
    final String[] values = getParameterValues(name);
    parameterMap.put(name, values);
  }
  parameterMap.setLocked(true);
  return parameterMap;
}

代码示例来源:origin: javaee/grizzly

/**
 * Returns a {@link java.util.Map} of the parameters of this request.
 * Request parameters are extra information sent with the request.
 * For HTTP servlets, parameters are contained in the query string
 * or posted form data.
 *
 * @return A {@link java.util.Map} containing parameter names as keys
 *  and parameter values as map values.
 */
public Map<String,String[]> getParameterMap() {
  if (parameterMap.isLocked())
    return parameterMap;
  for (final String name : getParameterNames()) {
    final String[] values = getParameterValues(name);
    parameterMap.put(name, values);
  }
  parameterMap.setLocked(true);
  return parameterMap;
}

代码示例来源:origin: javaee/grizzly

/**
 * Returns a {@link java.util.Map} of the parameters of this request.
 * Request parameters are extra information sent with the request.
 * For HTTP servlets, parameters are contained in the query string
 * or posted form data.
 *
 * @return A {@link java.util.Map} containing parameter names as keys
 *  and parameter values as map values.
 */
public Map<String,String[]> getParameterMap() {
  if (parameterMap.isLocked())
    return parameterMap;
  for (final String name : getParameterNames()) {
    final String[] values = getParameterValues(name);
    parameterMap.put(name, values);
  }
  parameterMap.setLocked(true);
  return parameterMap;
}

代码示例来源:origin: org.glassfish.grizzly/grizzly-http-server-core

/**
 * Returns a {@link java.util.Map} of the parameters of this request.
 * Request parameters are extra information sent with the request.
 * For HTTP servlets, parameters are contained in the query string
 * or posted form data.
 *
 * @return A {@link java.util.Map} containing parameter names as keys
 *  and parameter values as map values.
 */
public Map<String,String[]> getParameterMap() {
  if (parameterMap.isLocked())
    return parameterMap;
  for (final String name : getParameterNames()) {
    final String[] values = getParameterValues(name);
    parameterMap.put(name, values);
  }
  parameterMap.setLocked(true);
  return parameterMap;
}

代码示例来源:origin: org.glassfish.grizzly/grizzly-http-server

/**
 * Returns a {@link java.util.Map} of the parameters of this request.
 * Request parameters are extra information sent with the request.
 * For HTTP servlets, parameters are contained in the query string
 * or posted form data.
 *
 * @return A {@link java.util.Map} containing parameter names as keys
 *  and parameter values as map values.
 */
public Map<String,String[]> getParameterMap() {
  if (parameterMap.isLocked())
    return parameterMap;
  for (final String name : getParameterNames()) {
    final String[] values = getParameterValues(name);
    parameterMap.put(name, values);
  }
  parameterMap.setLocked(true);
  return parameterMap;
}

代码示例来源:origin: javaee/grizzly

/**
 * Returns a {@link java.util.Map} of the parameters of this request.
 * Request parameters are extra information sent with the request.
 * For HTTP servlets, parameters are contained in the query string
 * or posted form data.
 *
 * @return A {@link java.util.Map} containing parameter names as keys
 *  and parameter values as map values.
 */
public Map<String,String[]> getParameterMap() {
  if (parameterMap.isLocked())
    return parameterMap;
  for (final String name : getParameterNames()) {
    final String[] values = getParameterValues(name);
    parameterMap.put(name, values);
  }
  parameterMap.setLocked(true);
  return parameterMap;
}

代码示例来源:origin: javaee/grizzly

/**
 * Returns a {@link java.util.Map} of the parameters of this request.
 * Request parameters are extra information sent with the request.
 * For HTTP servlets, parameters are contained in the query string
 * or posted form data.
 *
 * @return A {@link java.util.Map} containing parameter names as keys
 *  and parameter values as map values.
 */
public Map<String,String[]> getParameterMap() {
  if (parameterMap.isLocked())
    return parameterMap;
  for (final String name : getParameterNames()) {
    final String[] values = getParameterValues(name);
    parameterMap.put(name, values);
  }
  parameterMap.setLocked(true);
  return parameterMap;
}

代码示例来源:origin: javaee/grizzly

/**
 * Returns a {@link java.util.Map} of the parameters of this request.
 * Request parameters are extra information sent with the request.
 * For HTTP servlets, parameters are contained in the query string
 * or posted form data.
 *
 * @return A {@link java.util.Map} containing parameter names as keys
 *  and parameter values as map values.
 */
public Map<String,String[]> getParameterMap() {
  if (parameterMap.isLocked())
    return parameterMap;
  for (final String name : getParameterNames()) {
    final String[] values = getParameterValues(name);
    parameterMap.put(name, values);
  }
  parameterMap.setLocked(true);
  return parameterMap;
}

代码示例来源:origin: org.mule.glassfish.grizzly/grizzly-http-server

/**
 * Returns a {@link java.util.Map} of the parameters of this request.
 * Request parameters are extra information sent with the request.
 * For HTTP servlets, parameters are contained in the query string
 * or posted form data.
 *
 * @return A {@link java.util.Map} containing parameter names as keys
 *  and parameter values as map values.
 */
public Map<String,String[]> getParameterMap() {
  if (parameterMap.isLocked())
    return parameterMap;
  for (final String name : getParameterNames()) {
    final String[] values = getParameterValues(name);
    parameterMap.put(name, values);
  }
  parameterMap.setLocked(true);
  return parameterMap;
}

相关文章

Request类方法