private static String convertSub ( String path ) { if ( isRestEasyPath ( path ) ) { // remove {} path = path . substring ( 1 , path . length ( ) - 1 ) ; int index = path . lastIndexOf ( ":" ) ; // check for regular expression if ( index > 0 && index + 1 < path . length ( ) ) { return path . substring ( index + 1 ) ; // make regular expression the path part } return ":" + path ; // put : in front of param name } if ( isVertxRegExPath ( path ) ) { // remove parameter name - :parameter:<regularExpression> int idx = path . indexOf ( ":" , 1 ) ; return path . substring ( idx + 1 ) ; } return path ; }
Converts from RestEasy to Vert . X format if necessary