org.apache.catalina.connector.Request.getParameterValues()方法的使用及代码示例

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

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

Request.getParameterValues介绍

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

代码示例

代码示例来源:origin: codefollower/Tomcat-Research

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

代码示例来源:origin: org.apache.tomcat/tomcat-catalina

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

代码示例来源:origin: org.apache.geronimo.ext.tomcat/catalina

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

代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina

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

代码示例来源:origin: com.ovea.tajin.servers/tajin-server-jetty9

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

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

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

代码示例来源:origin: org.ops4j.pax.tipi/org.ops4j.pax.tipi.tomcat-embed-core

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

代码示例来源:origin: com.ovea.tajin.server/tajin-server-jetty9

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

代码示例来源:origin: tomcat/catalina

public Object run() {       
    return request.getParameterValues(name);
  }           
}

代码示例来源:origin: jboss.web/jbossweb

public Object run() {       
    return request.getParameterValues(name);
  }           
}

代码示例来源:origin: org.jboss.web/jbossweb

public Object run() {       
    return request.getParameterValues(name);
  }           
}

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

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

代码示例来源:origin: org.osivia.portal.core/osivia-portal-jbossas-jbossweb-lib

/*      */   public Map getParameterMap()
/*      */   {
/* 1059 */     if (this.parameterMap.isLocked()) {
/* 1060 */       return this.parameterMap;
/*      */     }
/* 1062 */     Enumeration enumeration = getParameterNames();
/* 1063 */     while (enumeration.hasMoreElements()) {
/* 1064 */       String name = enumeration.nextElement().toString();
/* 1065 */       String[] values = getParameterValues(name);
/* 1066 */       this.parameterMap.put(name, values);
/*      */     }
/*      */ 
/* 1069 */     this.parameterMap.setLocked(true);
/*      */ 
/* 1071 */     return this.parameterMap;
/*      */   }
/*      */

代码示例来源:origin: org.jboss.web/jbossweb

/**
 * Returns a <code>Map</code> 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 <code>Map</code> containing parameter names as keys
 *  and parameter values as map values.
 */
public Map getParameterMap() {
  if (parameterMap.isLocked())
    return parameterMap;
  Enumeration enumeration = getParameterNames();
  while (enumeration.hasMoreElements()) {
    String name = enumeration.nextElement().toString();
    String[] values = getParameterValues(name);
    parameterMap.put(name, values);
  }
  parameterMap.setLocked(true);
  return parameterMap;
}

代码示例来源:origin: org.apache.catalina/com.springsource.org.apache.catalina

@Override
public String[] getParameterValues(String name) {
  if (request == null) {
    throw new IllegalStateException(
            sm.getString("requestFacade.nullRequest"));
  }
  String[] ret = null;
  /*
   * Clone the returned array only if there is a security manager
   * in place, so that performance won't suffer in the non-secure case
   */
  if (SecurityUtil.isPackageProtectionEnabled()){
    ret = AccessController.doPrivileged(
      new GetParameterValuePrivilegedAction(name));
    if (ret != null) {
      ret = ret.clone();
    }
  } else {
    ret = request.getParameterValues(name);
  }
  return ret;
}

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

/**
 * Returns a <code>Map</code> 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 <code>Map</code> containing parameter names as keys
 *  and parameter values as map values.
 */
@Override
public Map<String, String[]> getParameterMap() {
  if (parameterMap.isLocked())
    return parameterMap;
  Enumeration<String> enumeration = getParameterNames();
  while (enumeration.hasMoreElements()) {
    String name = enumeration.nextElement();
    String[] values = getParameterValues(name);
    parameterMap.put(name, values);
  }
  parameterMap.setLocked(true);
  return parameterMap;
}

代码示例来源:origin: org.apache.tomcat/tomcat-catalina

/**
 * Returns a <code>Map</code> 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 <code>Map</code> containing parameter names as keys
 *  and parameter values as map values.
 */
@Override
public Map<String, String[]> getParameterMap() {
  if (parameterMap.isLocked()) {
    return parameterMap;
  }
  Enumeration<String> enumeration = getParameterNames();
  while (enumeration.hasMoreElements()) {
    String name = enumeration.nextElement();
    String[] values = getParameterValues(name);
    parameterMap.put(name, values);
  }
  parameterMap.setLocked(true);
  return parameterMap;
}

代码示例来源:origin: jboss.web/jbossweb

public String[] getParameterValues(String name) {
  if (request == null) {
    throw new IllegalStateException(
            sm.getString("requestFacade.nullRequest"));
  }
  String[] ret = null;
  /*
   * Clone the returned array only if there is a security manager
   * in place, so that performance won't suffer in the nonsecure case
   */
  if (SecurityUtil.isPackageProtectionEnabled()){
    ret = (String[]) AccessController.doPrivileged(
      new GetParameterValuePrivilegedAction(name));
    if (ret != null) {
      ret = (String[]) ret.clone();
    }
  } else {
    ret = request.getParameterValues(name);
  }
  return ret;
}

代码示例来源:origin: org.apache.tomcat/tomcat-catalina

@Override
public String[] getParameterValues(String name) {
  if (request == null) {
    throw new IllegalStateException(
            sm.getString("requestFacade.nullRequest"));
  }
  String[] ret = null;
  /*
   * Clone the returned array only if there is a security manager
   * in place, so that performance won't suffer in the non-secure case
   */
  if (SecurityUtil.isPackageProtectionEnabled()){
    ret = AccessController.doPrivileged(
      new GetParameterValuePrivilegedAction(name));
    if (ret != null) {
      ret = ret.clone();
    }
  } else {
    ret = request.getParameterValues(name);
  }
  return ret;
}

代码示例来源:origin: org.jboss.web/jbossweb

public String[] getParameterValues(String name) {
  if (request == null) {
    throw MESSAGES.nullRequestFacade();
  }
  String[] ret = null;
  /*
   * Clone the returned array only if there is a security manager
   * in place, so that performance won't suffer in the nonsecure case
   */
  if (SecurityUtil.isPackageProtectionEnabled()){
    ret = (String[]) AccessController.doPrivileged(
      new GetParameterValuePrivilegedAction(name));
    if (ret != null) {
      ret = (String[]) ret.clone();
    }
  } else {
    ret = request.getParameterValues(name);
  }
  return ret;
}

相关文章

Request类方法