public String getDebugModeBuildTimeGenerationPath ( String path ) { int idx = path . indexOf ( "?" ) ; String debugModeGeneratorPath = path . substring ( 0 , idx ) ; debugModeGeneratorPath = debugModeGeneratorPath . replaceAll ( "\\." , "/" ) ; int jawrGenerationParamIdx = path . indexOf ( JawrRequestHandler . GENERATION_PARAM ) ; String parameter = path . substring ( jawrGenerationParamIdx + JawrRequestHandler . GENERATION_PARAM . length ( ) + 1 ) ; // Add // 1 // for // the // '=' // character ResourceGenerator resourceGenerator = resolveResourceGenerator ( parameter ) ; String suffixPath = null ; if ( resourceGenerator instanceof SpecificCDNDebugPathResourceGenerator ) { suffixPath = ( ( SpecificCDNDebugPathResourceGenerator ) resourceGenerator ) . getDebugModeBuildTimeGenerationPath ( parameter ) ; } else { suffixPath = parameter . replaceFirst ( GeneratorRegistry . PREFIX_SEPARATOR , JawrConstant . URL_SEPARATOR ) ; } return debugModeGeneratorPath + "/" + suffixPath ; }
Returns the path to use in the build time process to generate the resource path for debug mode .