public class HttpClientJarResource extends HttpResource
HttpResource.HttpDataParamsextension, fileName, isFromRoot, name, webServer| Constructor and Description |
|---|
HttpClientJarResource(HttpWebServer webServer, String fileName, String name, String extension)Creates a new file resource without loading it. |
| Modifier and Type | Method and Description |
|---|---|
protected File | createFile(String fn)Creates the File object. |
protected InputStream | createInputStream()Creates the input stream. |
protected JarEntry | createJarEntry(String fn)Creates the JarEntry object. |
protected long | getLength()Gets the size of the File or JarEntry, 0 or -1 for error. |
boolean | hasDynamicData(HttpSession httpSession)Checks if this resource could return different content for each call to getData when the last modified time has not been changed. |
boolean | isHandleSet()Check if it's handle is set, i.e. |
protected long | lastModified()Gets the last modified time for the File or JarEntry, -1 for error. |
protected byte[] | loadFile()Load the file into memory. |
protected void | loadInternal(HttpResourceParameters httpParam)Loads or reloads the file. |
getData, getFileSize, getHitCount, getLastModified, getParamObj, increaseHitCount, isUncached, load, reload, sendRawDataInBlockspublic HttpClientJarResource(HttpWebServer webServer, String fileName, String name, String extension)
load method.public boolean hasDynamicData(HttpSession httpSession)
hasDynamicData in class HttpResourcehttpSession - The session instance.protected File createFile(String fn)
protected JarEntry createJarEntry(String fn)
protected long lastModified()
protected long getLength()
public boolean isHandleSet()
isHandleSet in class HttpResourceprotected void loadInternal(HttpResourceParameters httpParam) throws IOException
IOException - if the loading of the resource fails even when it exists.FileNotFoundException - if the loading of the resource cannot be found.protected InputStream createInputStream() throws IOException
IOException - for errors.protected byte[] loadFile()
throws IOExceptionIOException - if the loading of the resource fails even when it exists.Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© 2026 Mindus SARL. All rights reserved.