public String getImageFinalPath ( String path , JawrConfig jawrConfig ) { String finalPath = path ; // Remove servlet mapping if it exists. finalPath = removeServletMappingFromPath ( finalPath , jawrConfig . getServletMapping ( ) ) ; if ( finalPath . startsWith ( "/" ) ) { finalPath = finalPath . substring ( 1 ) ; } // remove cache prefix int idx = finalPath . indexOf ( "/" ) ; finalPath = finalPath . substring ( idx + 1 ) ; return finalPath ; }
Retrieves the image final path where the servlet mapping and the cache prefix have been removed