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 |
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, getRawData, getRawSize, hasDynamicData, increaseHitCount, isModifiedSince, isUncached, isUnmodifiedSince, load, loadInternal, reload, reload2, sendRawDataInBlocks, setRawData, setRawDatapublic HttpClientJarResource(HttpWebServer webServer, String fileName, String name, String extension)
load method.protected File createFile(String fn)
createFile in class HttpResourceprotected JarEntry createJarEntry(String fn)
createJarEntry in class HttpResourceprotected long lastModified()
lastModified in class HttpResourceprotected long getLength()
getLength in class HttpResourcepublic boolean isHandleSet()
isHandleSet in class HttpResourceprotected void loadInternal(HttpResourceParameters httpParam) throws IOException
loadInternal in class HttpResourceIOException - 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
createInputStream in class HttpResourceIOException - for errors.protected byte[] loadFile()
throws IOException
loadFile in class HttpResourceIOException - if the loading of the resource fails even when it exists.Phantom® and NetPhantom® are registered trademarks of Nexum Technologies SARL.
© Copyright Nexum Technologies SARL, 2011. All rights reserved.