Пример #1
0
    @Override
    public List<String> getHeaderValues(String s) {
      Enumeration<String> values = m_request.getHeaders(s);
      List<String> ret = new ArrayList<String>();
      while (values.hasMoreElements()) {
        ret.add(values.nextElement());
      }

      return (ret);
    }
Пример #2
0
    @Override
    public Set<String> getParameterNames() {
      Set<String> parameterNames = new HashSet<String>();
      Enumeration<String> names = m_request.getParameterNames();

      while (names.hasMoreElements()) {
        parameterNames.add(names.nextElement());
      }

      return (parameterNames);
    }