private boolean matchesPath ( String routePath , String pathToMatch ) { routePath = routePath . replaceAll ( Path . VAR_REGEXP , Path . VAR_REPLACE ) ; return pathToMatch . matches ( "(?i)" + routePath ) ; }
Helper method . Tells if the the HTTP path matches the route path .