javax.servlet.http.HttpServletRequestWrapper.getParameterNames()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(6.5k)|赞(0)|评价(0)|浏览(205)

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

HttpServletRequestWrapper.getParameterNames介绍

暂无

代码示例

代码示例来源:origin: cloudfoundry/uaa

@Override
public Enumeration<String> getParameterNames() {
  return super.getParameterNames();
}

代码示例来源:origin: cloudfoundry/uaa

@Override
public Enumeration<String> getParameterNames() {
  return super.getParameterNames();
}

代码示例来源:origin: spring-projects/spring-framework

@Override
public Enumeration<String> getParameterNames() {
  Set<String> names = new LinkedHashSet<>();
  names.addAll(Collections.list(super.getParameterNames()));
  names.addAll(this.formParams.keySet());
  return Collections.enumeration(names);
}

代码示例来源:origin: spring-projects/spring-framework

@Override
public Enumeration<String> getParameterNames() {
  Set<String> names = new LinkedHashSet<>();
  names.addAll(Collections.list(super.getParameterNames()));
  names.addAll(this.formParameters.keySet());
  return Collections.enumeration(names);
}

代码示例来源:origin: spring-projects/spring-framework

@Override
public Enumeration<String> getParameterNames() {
  if (this.cachedContent.size() == 0 && isFormPost()) {
    writeRequestParametersToCachedContent();
  }
  return super.getParameterNames();
}

代码示例来源:origin: org.springframework/spring-web

@Override
public Enumeration<String> getParameterNames() {
  Set<String> names = new LinkedHashSet<>();
  names.addAll(Collections.list(super.getParameterNames()));
  names.addAll(this.formParams.keySet());
  return Collections.enumeration(names);
}

代码示例来源:origin: org.springframework/spring-web

@Override
public Enumeration<String> getParameterNames() {
  Set<String> names = new LinkedHashSet<>();
  names.addAll(Collections.list(super.getParameterNames()));
  names.addAll(this.formParameters.keySet());
  return Collections.enumeration(names);
}

代码示例来源:origin: oblac/jodd

/**
 * @see javax.servlet.http.HttpServletRequest#getParameterNames()
 */
@Override
@SuppressWarnings({"unchecked"})
public Enumeration<String> getParameterNames() {
  if (mreq == null) {
    return super.getParameterNames();
  }
  return Collections.enumeration(mreq.getParameterNames());
}

代码示例来源:origin: primefaces/primefaces

@Override
public Enumeration getParameterNames() {
  Set<String> paramNames = new LinkedHashSet<>();
  paramNames.addAll(formParams.keySet());
  Enumeration<String> original = super.getParameterNames();
  while (original.hasMoreElements()) {
    paramNames.add(original.nextElement());
  }
  return Collections.enumeration(paramNames);
}

代码示例来源:origin: org.springframework/spring-web

@Override
public Enumeration<String> getParameterNames() {
  if (this.cachedContent.size() == 0 && isFormPost()) {
    writeRequestParametersToCachedContent();
  }
  return super.getParameterNames();
}

代码示例来源:origin: paoding-code/paoding-rose

@Override
  @SuppressWarnings("unchecked")
  public Enumeration getParameterNames() {
    final Enumeration<String> requestParamNames = super.getParameterNames();

    return new Enumeration<String>() {

      final Iterator<String> matchResultParamNames = new ArrayList<String>(parameters
          .keySet()).iterator();

      @Override
      public boolean hasMoreElements() {
        return matchResultParamNames.hasNext() || requestParamNames.hasMoreElements();
      }

      @Override
      public String nextElement() {
        if (matchResultParamNames.hasNext()) {
          return matchResultParamNames.next();
        }
        if (requestParamNames.hasMoreElements()) {
          return requestParamNames.nextElement();
        }
        throw new NoSuchElementException();
      }

    };
  }
}

代码示例来源:origin: com.liferay.portal/com.liferay.portal.kernel

@Override
public Enumeration<String> getParameterNames() {
  if (_params.isEmpty()) {
    if (_inherit) {
      return super.getParameterNames();
    }
    return Collections.emptyEnumeration();
  }
  Set<String> names = null;
  if (_inherit) {
    Enumeration<String> enu = super.getParameterNames();
    while (enu.hasMoreElements()) {
      if (names == null) {
        names = new LinkedHashSet<>();
      }
      names.add(enu.nextElement());
    }
  }
  if (names == null) {
    names = _params.keySet();
  }
  else {
    names.addAll(_params.keySet());
  }
  return Collections.enumeration(names);
}

代码示例来源:origin: Comcast/cmb

public Enumeration<java.lang.String> getParameterNames(){
  if(useStreamFlag){
    return parameterNames;
  }else {
    return super.getParameterNames();
  }
  
}

代码示例来源:origin: paultuckey/urlrewritefilter

public Enumeration getParameterNames() {
  if (overridenParameters != null) {
    List keys = Collections.list(super.getParameterNames());
    keys.addAll(overridenParameters.keySet());
    return Collections.enumeration(keys);
  }
  return super.getParameterNames();
}

代码示例来源:origin: org.tuckey/urlrewritefilter

public Enumeration getParameterNames() {
  if (overridenParameters != null) {
    List keys = Collections.list(super.getParameterNames());
    keys.addAll(overridenParameters.keySet());
    return Collections.enumeration(keys);
  }
  return super.getParameterNames();
}

代码示例来源:origin: spring-projects/spring-batch-admin

@Override
public Enumeration<String> getParameterNames() {
  Set<String> paramNames = new HashSet<String>();
  @SuppressWarnings("unchecked")
  Enumeration paramEnum = super.getParameterNames();
  while (paramEnum.hasMoreElements()) {
    paramNames.add((String) paramEnum.nextElement());
  }
  paramNames.addAll(params.keySet());
  return Collections.enumeration(paramNames);
}

代码示例来源:origin: org.n52.security/52n-security-authn-web

@Override
public Map getParameterMap() {
  Map<String, String[]> parameters = new HashMap<String, String[]>();
  for (Enumeration<String> e = super.getParameterNames(); e.hasMoreElements();) {
    String name = e.nextElement();
    parameters.put(name, getParameterValues(name));
  }
  return parameters;
}

代码示例来源:origin: org.seleniumhq.selenium/jetty-rc-repacked

public Enumeration getParameterNames()
{
  if (_parameters==null)
    return super.getParameterNames();
  return Collections.enumeration(_parameters.keySet());
}

代码示例来源:origin: io.github.dheid/wings

/**
 * Returns the names of all the parameters as an Enumeration of
 * Strings.  It returns an empty Enumeration if there are no parameters.
 *
 * @return the names of all the parameters as an Enumeration of Strings
 */
@Override
public Enumeration getParameterNames() {
  if (urlencodedRequest) return super.getParameterNames();
  final Iterator iter = parameters.keySet().iterator();
  return new MyEnumeration(iter);
}

代码示例来源:origin: com.helger/ph-servlet

@Override
public Enumeration <String> getParameterNames ()
{
 if (ArrayHelper.isEmpty (m_aContent) || m_aParameterMap.isEmpty ())
  return super.getParameterNames ();
 return new ParamNameEnumeration (m_aParameterMap.keySet ());
}

相关文章

HttpServletRequestWrapper类方法