protected static void parseCondFlag ( String line , RewriteCond condition , String flag ) { if ( flag . equals ( "NC" ) || flag . equals ( "nocase" ) ) { condition . setNocase ( true ) ; } else if ( flag . equals ( "OR" ) || flag . equals ( "ornext" ) ) { condition . setOrnext ( true ) ; } else { throw UndertowServletLogger . ROOT_LOGGER . invalidRewriteFlags ( line , flag ) ; } }
Parser for RewriteCond flags .