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

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

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

Request.getParameter介绍

[英]Return the value of the specified request parameter, if any; otherwise, return null. If there is more than one value defined, return only the first one.
[中]返回指定请求参数的值(如果有);否则,返回null。如果定义了多个值,则只返回第一个值。

代码示例

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

@Override
  public String run() {
    return request.getParameter(name);
  }
}

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

@Override
  public String run() {
    return request.getParameter(name);
  }
}

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

@Override
  public String run() {
    return request.getParameter(name);
  }
}

代码示例来源:origin: org.picketlink.distribution/picketlink-jbas5

/**
 * Perform validation os the request object
 *
 * @param request
 *
 * @return
 */
protected boolean validate(Request request) {
  return request.getParameter("SAMLResponse") != null;
}

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

@Override
  public String run() {       
    return request.getParameter(name);
  }           
}

代码示例来源:origin: org.jboss.jbossas/jboss-as-tomcat

private Map getSharedState(Request request, LoginConfig config)
{
 Map map = new HashMap();
 if(config.getAuthMethod().equals(HttpServletRequest.FORM_AUTH))
 {
   map.put("javax.security.auth.login.name",
      getPrincipal(request.getParameter(Constants.FORM_USERNAME)));
   map.put("javax.security.auth.login.password",
      request.getParameter(Constants.FORM_PASSWORD));
 }
 return map;
}

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

public void addElement(StringBuilder buf, Date date, Request request,
      Response response, long time) {
    buf.append(wrap(urlEncode(request.getParameter(parameter))));
  }
}

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

@Override
  public void addElement(StringBuilder buf, Date date, Request request,
      Response response, long time) {
    buf.append(wrap(urlEncode(request.getParameter(parameter))));
  }
}

代码示例来源:origin: org.picketlink/picketlink-tomcat-common

/**
 * <p> Indicates if the current request is a LocalLogout request. </p>
 *
 * @param request
 *
 * @return
 */
private boolean isLocalLogout(Request request) {
  String lloStr = request.getParameter(GeneralConstants.LOCAL_LOGOUT);
  return isNotNull(lloStr) && "true".equalsIgnoreCase(lloStr);
}

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

public void addElement(StringBuilder buf, Date date, Request request,
      Response response, long time) {
    buf.append(wrap(urlEncode(request.getParameter(parameter))));
  }
}

代码示例来源:origin: org.picketlink.distribution/picketlink-jbas7

/**
 * <p> Indicates if the current request is a GlobalLogout request. </p>
 *
 * @param request
 *
 * @return
 */
private boolean isGlobalLogout(Request request) {
  String gloStr = request.getParameter(GeneralConstants.GLOBAL_LOGOUT);
  return isNotNull(gloStr) && "true".equalsIgnoreCase(gloStr);
}

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

@Override
  public void addElement(StringBuilder buf, Date date, Request request,
      Response response, long time) {
    buf.append(wrap(urlEncode(request.getParameter(parameter))));
  }
}

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

@Override
  public void addElement(StringBuilder buf, Date date, Request request,
      Response response, long time) {
    buf.append(wrap(urlEncode(request.getParameter(parameter))));
  }
}

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

@Override
  public void addElement(StringBuilder buf, Date date, Request request,
      Response response, long time) {
    buf.append(wrap(urlEncode(request.getParameter(parameter))));
  }
}

代码示例来源:origin: org.picketlink.distribution/picketlink-jbas5

/**
 * <p> Indicates if the current request is a GlobalLogout request. </p>
 *
 * @param request
 *
 * @return
 */
private boolean isGlobalLogout(Request request) {
  String gloStr = request.getParameter(GeneralConstants.GLOBAL_LOGOUT);
  return isNotNull(gloStr) && "true".equalsIgnoreCase(gloStr);
}

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

public String getParameter(String name) {
  if (request == null) {
    throw new IllegalStateException(
            sm.getString("requestFacade.nullRequest"));
  }
  if (System.getSecurityManager() != null){
    return (String)AccessController.doPrivileged(
      new GetParameterPrivilegedAction(name));
  } else {
    return request.getParameter(name);
  }
}

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

public String getParameter(String name) {
  if (request == null) {
    throw new IllegalStateException(
            sm.getString("requestFacade.nullRequest"));
  }
  if (Globals.IS_SECURITY_ENABLED){
    return (String)AccessController.doPrivileged(
      new GetParameterPrivilegedAction(name));
  } else {
    return request.getParameter(name);
  }
}

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

public String getParameter(String name) {
  if (request == null) {
    throw MESSAGES.nullRequestFacade();
  }
  if (Globals.IS_SECURITY_ENABLED){
    return (String)AccessController.doPrivileged(
      new GetParameterPrivilegedAction(name));
  } else {
    return request.getParameter(name);
  }
}

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

@Override
  public void addElement(CharArrayWriter buf, Date date, Request request,
      Response response, long time) {
    buf.append(wrap(urlEncode(request.getParameter(parameter))));
  }
}

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

@Override
  public void addElement(CharArrayWriter buf, Date date, Request request,
      Response response, long time) {
    buf.append(wrap(urlEncode(request.getParameter(parameter))));
  }
}

相关文章

Request类方法