private Pair<String, String>[] getAllParams(final HttpServletRequest req) {
    final List<Pair<String, String>> allParams = new LinkedList<>();

    final Iterator it = req.getParameterMap().entrySet().iterator();
    while (it.hasNext()) {
      final Map.Entry pairs = (Map.Entry) it.next();
      for (final Object value : (String[]) pairs.getValue()) {
        allParams.add(new Pair<>((String) pairs.getKey(), (String) value));
      }
    }

    return allParams.toArray(new Pair[allParams.size()]);
  }
private Pair < String , String > [ ] getAllParams ( final HttpServletRequest req ) { final List < Pair < String , String > > allParams = new LinkedList < > ( ) ; final Iterator it = req . getParameterMap ( ) . entrySet ( ) . iterator ( ) ; while ( it . hasNext ( ) ) { final Map . Entry pairs = ( Map . Entry ) it . next ( ) ; for ( final Object value : ( String [ ] ) pairs . getValue ( ) ) { allParams . add ( new Pair < > ( ( String ) pairs . getKey ( ) , ( String ) value ) ) ; } } return allParams . toArray ( new Pair [ allParams . size ( ) ] ) ; }
Parse all Http request params