private List < OrderSpecifier > getOrderByList ( HttpServletRequest request ) throws Exception { String [ ] orderByStrings = request . getParameterValues ( "orderBy" ) ; if ( null == orderByStrings ) { return null ; } if ( 0 == orderByStrings . length ) { return null ; } List < OrderSpecifier > result = new Vector < OrderSpecifier > ( ) ; for ( String orderByString : orderByStrings ) { OrderSpecifier orderSpecifier = parseOrderSpecifier ( orderByString ) ; result . add ( orderSpecifier ) ; } return result ; }
Return a list of order specifiers found in request