public class HttpResources extends Object
Constructor and Description |
---|
HttpResources(HttpWebServer webServer,
int defaultCacheSize,
int parsedCacheSize,
boolean isFileSystemCaseSensitive)
Creates the resource manager with the cache settings.
|
Modifier and Type | Method and Description |
---|---|
void |
clearCaches()
Clears the web server caches.
|
void |
displayWebServerCache(VirtualCListBox list)
Fills a list box with the cache information.
|
HttpWebServer |
getWebServer()
Gets the web server instance.
|
HttpResource |
loadResource(HttpResourceParameters httpParams)
Loads a resource.
|
public HttpResources(HttpWebServer webServer, int defaultCacheSize, int parsedCacheSize, boolean isFileSystemCaseSensitive)
public HttpWebServer getWebServer()
public HttpResource loadResource(HttpResourceParameters httpParams) throws IOException
Checking is done of the requested resource name of e.g. drive specification (i.e. no color is allowed in the resource name). The Path is also divided to see if a relative specification breaks the root (e.g. /dir/dir2/../../../file.txt). In these cases, an IOException is thrown.
IOException
- for read resource failures.public void displayWebServerCache(VirtualCListBox list)
public void clearCaches()
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.