org.apache.coyote.Request.getParameters()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(6.4k)|赞(0)|评价(0)|浏览(261)

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

Request.getParameters介绍

暂无

代码示例

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

  1. /**
  2. * Add a parameter name and corresponding set of values to this Request.
  3. * (This is used when restoring the original request on a form based
  4. * login).
  5. *
  6. * @param name Name of this request parameter
  7. * @param values Corresponding values for this request parameter
  8. */
  9. public void addParameter(String name, String values[]) {
  10. coyoteRequest.getParameters().addParameterValues(name, values);
  11. }

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

  1. /**
  2. * Add a parameter name and corresponding set of values to this Request.
  3. * (This is used when restoring the original request on a form based
  4. * login).
  5. *
  6. * @param name Name of this request parameter
  7. * @param values Corresponding values for this request parameter
  8. */
  9. public void addParameter(String name, String values[]) {
  10. coyoteRequest.getParameters().addParameterValues(name, values);
  11. }

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

  1. /**
  2. * Add a parameter name and corresponding set of values to this Request.
  3. * (This is used when restoring the original request on a form based
  4. * login).
  5. *
  6. * @param name Name of this request parameter
  7. * @param values Corresponding values for this request parameter
  8. */
  9. @Deprecated
  10. public void addParameter(String name, String values[]) {
  11. coyoteRequest.getParameters().addParameterValues(name, values);
  12. }

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

  1. @Override
  2. public Object get(Request request, String name) {
  3. if (request.getCoyoteRequest().getParameters()
  4. .isParseFailed()) {
  5. return Boolean.TRUE;
  6. }
  7. return null;
  8. }

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

  1. /**
  2. * @return the names of all defined request parameters for this request.
  3. */
  4. @Override
  5. public Enumeration<String> getParameterNames() {
  6. if (!parametersParsed) {
  7. parseParameters();
  8. }
  9. return coyoteRequest.getParameters().getParameterNames();
  10. }

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

  1. /**
  2. * Return the value of the specified request parameter, if any; otherwise,
  3. * return <code>null</code>. If there is more than one value defined,
  4. * return only the first one.
  5. *
  6. * @param name Name of the desired request parameter
  7. */
  8. public String getParameter(String name) {
  9. if (!parametersParsed)
  10. parseParameters();
  11. return coyoteRequest.getParameters().getParameter(name);
  12. }

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

  1. /**
  2. * Return the names of all defined request parameters for this request.
  3. */
  4. public Enumeration getParameterNames() {
  5. if (!parametersParsed)
  6. parseParameters();
  7. return coyoteRequest.getParameters().getParameterNames();
  8. }

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

  1. /**
  2. * Return the names of all defined request parameters for this request.
  3. */
  4. @Override
  5. public Enumeration<String> getParameterNames() {
  6. if (!parametersParsed) {
  7. parseParameters();
  8. }
  9. return coyoteRequest.getParameters().getParameterNames();
  10. }

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

  1. @Override
  2. public Object get(Request request, String name) {
  3. return request.getCoyoteRequest().getParameters().getParseFailedReason();
  4. }

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

  1. /**
  2. * Return the defined values for the specified request parameter, if any;
  3. * otherwise, return <code>null</code>.
  4. *
  5. * @param name Name of the desired request parameter
  6. */
  7. @Override
  8. public String[] getParameterValues(String name) {
  9. if (!parametersParsed)
  10. parseParameters();
  11. return coyoteRequest.getParameters().getParameterValues(name);
  12. }

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

  1. /* */ public Enumeration getParameterNames()
  2. /* */ {
  3. /* 1081 */ if (!this.parametersParsed) {
  4. /* 1082 */ parseParameters();
  5. /* */ }
  6. /* 1084 */ return this.coyoteRequest.getParameters().getParameterNames();
  7. /* */ }
  8. /* */

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

  1. /**
  2. * Return the value of the specified request parameter, if any; otherwise,
  3. * return <code>null</code>. If there is more than one value defined,
  4. * return only the first one.
  5. *
  6. * @param name Name of the desired request parameter
  7. */
  8. public String getParameter(String name) {
  9. if (!parametersParsed)
  10. parseParameters();
  11. return coyoteRequest.getParameters().getParameter(name);
  12. }

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

  1. /**
  2. * Return the value of the specified request parameter, if any; otherwise,
  3. * return <code>null</code>. If there is more than one value defined,
  4. * return only the first one.
  5. *
  6. * @param name Name of the desired request parameter
  7. */
  8. public String getParameter(String name) {
  9. if (!parametersParsed)
  10. parseParameters();
  11. return coyoteRequest.getParameters().getParameter(name);
  12. }

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

  1. /**
  2. * Return the names of all defined request parameters for this request.
  3. */
  4. public Enumeration getParameterNames() {
  5. if (!parametersParsed)
  6. parseParameters();
  7. return coyoteRequest.getParameters().getParameterNames();
  8. }

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

  1. /**
  2. * Return the defined values for the specified request parameter, if any;
  3. * otherwise, return <code>null</code>.
  4. *
  5. * @param name Name of the desired request parameter
  6. */
  7. public String[] getParameterValues(String name) {
  8. if (!parametersParsed)
  9. parseParameters();
  10. return coyoteRequest.getParameters().getParameterValues(name);
  11. }

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

  1. /**
  2. * @return the names of all defined request parameters for this request.
  3. */
  4. @Override
  5. public Enumeration<String> getParameterNames() {
  6. if (!parametersParsed) {
  7. parseParameters();
  8. }
  9. return coyoteRequest.getParameters().getParameterNames();
  10. }

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

  1. /**
  2. * Return the names of all defined request parameters for this request.
  3. */
  4. @Override
  5. public Enumeration<String> getParameterNames() {
  6. if (!parametersParsed)
  7. parseParameters();
  8. return coyoteRequest.getParameters().getParameterNames();
  9. }

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

  1. /**
  2. * Return the defined values for the specified request parameter, if any;
  3. * otherwise, return <code>null</code>.
  4. *
  5. * @param name Name of the desired request parameter
  6. */
  7. @Override
  8. public String[] getParameterValues(String name) {
  9. if (!parametersParsed)
  10. parseParameters();
  11. return coyoteRequest.getParameters().getParameterValues(name);
  12. }

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

  1. @Override
  2. public Object get(Request request, String name) {
  3. if (request.getCoyoteRequest().getParameters()
  4. .isParseFailed()) {
  5. return Boolean.TRUE;
  6. }
  7. return null;
  8. }

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

  1. /**
  2. * Return the defined values for the specified request parameter, if any;
  3. * otherwise, return <code>null</code>.
  4. *
  5. * @param name Name of the desired request parameter
  6. */
  7. public String[] getParameterValues(String name) {
  8. if (!parametersParsed)
  9. parseParameters();
  10. return coyoteRequest.getParameters().getParameterValues(name);
  11. }

相关文章

Request类方法