private List < String > extractRequiredParamsInURI ( String uri ) { List < String > matchList = new ArrayList < String > ( ) ; Pattern regex = Pattern . compile ( "\\{(.*?)\\}" ) ; Matcher regexMatcher = regex . matcher ( uri ) ; while ( regexMatcher . find ( ) ) { matchList . add ( regexMatcher . group ( 1 ) ) ; } return matchList ; }
Extract Required Params In URI