Package com.iizix.jetty
Interface IWebServerDirectoryMapper
- All Known Implementing Classes:
RunConfigurationWebServer
public interface IWebServerDirectoryMapper
Interface for mapping directories to the web server.
Method Summary
Modifier and TypeMethodDescriptionaddDirectoryMapping(String mappedFile, File directory) Adds a directory mapping for the web server to a directory.
Method Details
addDirectoryMapping
File addDirectoryMapping(String mappedFile, File directory) throws FileNotFoundException, IOException Adds a directory mapping for the web server to a directory.- Parameters:
directory- The directory to map.leadingPath- The leading path from the web root directory to the directory being remapped.- Returns:
- A previous mapping, or
nullif none is found. - Throws:
FileNotFoundException- If the directory does not exist.IOException- If the directory cannot be resolved to a canonical file.