private Boolean existsPage ( String page ) throws MalformedURLException { // Searching the page... LOGGER . debug ( "Searching page [{}]..." , page ) ; LOGGER . debug ( "Page's real path is [{}]" , this . context . getRealPath ( page ) ) ; File file = new File ( this . context . getRealPath ( page ) ) ; Boolean exists = file . exists ( ) ; LOGGER . debug ( "Page [{}]{}found" , page , ( exists ? " " : " not " ) ) ; return exists ; }
Checks if a given page exists in the container and could be served .