Overview
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
B
C
D
E
F
G
I
J
L
M
P
R
S
T
U
Z
A
addDownload()
- Method in class javazoom.download.util.
FileInfo
Increases total download counter.
addIncompleteDownload()
- Method in class javazoom.download.util.
FileInfo
Increases total incomplete download counter.
B
Base64
- class javazoom.download.util.
Base64
.
Base64 encoding/decoding implementation as described in section (6.8.) of RFC 2045.
Base64()
- Constructor for class javazoom.download.util.
Base64
BLACKLIST
- Static variable in class javazoom.download.
DownloadServlet
Characters blacklist for secured filename :
BUFFERSIZE
- Static variable in class javazoom.download.
DownloadDatabaseSource
Buffer size to read file from database inputstream and write to user's outputstream.
BUFFERSIZE
- Static variable in class javazoom.download.
DownloadZipSource
Buffer size to read zip archive content from disk and write to user's outputstream.
BUFFERSIZE
- Static variable in class javazoom.download.
DownloadFolderSource
Buffer size to read file from disk and write to user's outputstream.
C
characters(char[], int, int)
- Method in class javazoom.download.util.
MimeHandler
SAX2 - characters callback.
checkAuth(String, FileInfo)
- Method in class javazoom.download.
DownloadImpl
Checks WWW authentication for FileInfo.
checkAuth(String, String, String)
- Method in class javazoom.download.
DownloadImpl
Checks WWW authentication for input login/password.
checkFilename(String)
- Method in class javazoom.download.
DownloadServlet
Removes UnSafe characters in URL (for instance %2E%2E/ means ../) An Download4J malicious user could try to download files outside the downloadRoot.
checkLogin(String)
- Method in class javazoom.download.util.
FileInfo
Checks login for the file.
checkPassword(String)
- Method in class javazoom.download.util.
FileInfo
Checks password for the file.
close()
- Method in class javazoom.download.util.
Debug
Flushes and closes the output.
Config
- class javazoom.download.util.
Config
.
This class defines the a contract for Download4J configurations.
Config()
- Constructor for class javazoom.download.util.
Config
ConfigHandler
- class javazoom.download.util.
ConfigHandler
.
This class implements a SAX2 handler to read Download4J XML configuration file.
ConfigHandler(String)
- Constructor for class javazoom.download.util.
ConfigHandler
Contructs the Config handler.
D
DATABASE
- Static variable in class javazoom.download.
DownloadImpl
DatabaseConfig
- class javazoom.download.util.
DatabaseConfig
.
This class implements a Config for Database.
DatabaseConfig()
- Constructor for class javazoom.download.util.
DatabaseConfig
DATEFORMAT
- Static variable in class javazoom.download.util.
Debug
Date format for traces : Default is yyyy/MM/dd HH:mm
DBPASSWORD
- Static variable in class javazoom.download.util.
ConfigHandler
DBPASSWORD key for database credentials properties : Default is password
DBUSER
- Static variable in class javazoom.download.util.
ConfigHandler
DBUSER key for database credentials properties : Default is user
Debug
- class javazoom.download.util.
Debug
.
This class implements simple trace for Download4J.
DEBUG
- Static variable in class javazoom.download.util.
Debug
decode(char)
- Static method in class javazoom.download.util.
Base64
Decodes a Base64 character into its 6-bit value (0..63).
decode(char[])
- Static method in class javazoom.download.util.
Base64
Decodes Base64 formatted byte array or string into a char array.
decode(String)
- Static method in class javazoom.download.util.
Base64
Decodes Base64 formatted byte array or string into a char array.
decodeToByteArray(char[])
- Static method in class javazoom.download.util.
Base64
decodeToByteArray(String)
- Static method in class javazoom.download.util.
Base64
DEFAULTCONTENTDISPOSITION
- Static variable in class javazoom.download.
DownloadImpl
Default content-disposition : ""
DEFAULTCONTENTTYPE
- Static variable in class javazoom.download.
DownloadImpl
Default content-type for unknown extensions : application/unknown
DEFAULTFOLDERDOWNLOADROOT
- Static variable in class javazoom.download.util.
ConfigHandler
Default DownloadRoot path (WEB-INF subfolder) : downloadroot
DEFAULTIMPL
- Static variable in class javazoom.download.util.
ConfigHandler
Default DownloadSource implementation for database.
DEFAULTZIPDOWNLOADROOT
- Static variable in class javazoom.download.util.
ConfigHandler
Default ZIP archive (WEB-INF subfolder) : downloadroot.zip
destroy()
- Method in class javazoom.download.
DownloadServlet
Clean up resources.
doGet(HttpServletRequest, HttpServletResponse)
- Method in class javazoom.download.
DownloadServlet
Processes HTTP Get.
doPost(HttpServletRequest, HttpServletResponse)
- Method in class javazoom.download.
DownloadServlet
Processes HTTP Post.
download(FileInfo, OutputStream)
- Method in class javazoom.download.
DownloadDatabaseSource
Sends file to download (binary) to end-user.
download(FileInfo, OutputStream)
- Method in class javazoom.download.
DownloadImpl
Downloads file (in the incoming thread) and sends binary data to user's outputstream.
download(FileInfo, OutputStream)
- Method in class javazoom.download.
DownloadZipSource
Sends file to download (binary) to end-user.
download(FileInfo, OutputStream)
- Method in class javazoom.download.
DownloadFolderSource
Sends file to download (binary) to end-user.
download(FileInfo, OutputStream)
- Method in class javazoom.download.
DownloadSource
Sends file to download (binary) to end-user.
DownloadBean
- class javazoom.download.
DownloadBean
.
This class allows to read FileInfo of downloaded files.
DownloadBean()
- Constructor for class javazoom.download.
DownloadBean
DOWNLOADBEANNAME
- Static variable in class javazoom.download.
DownloadServlet
Bean name for JSP : Default is downloadbean
DownloadDatabaseSource
- class javazoom.download.
DownloadDatabaseSource
.
This class implements a DownloadSource for database.
DownloadDatabaseSource(Config)
- Constructor for class javazoom.download.
DownloadDatabaseSource
Contructs DownloadDatabaseSource and loads JDBC driver.
DownloadFolderSource
- class javazoom.download.
DownloadFolderSource
.
This class implements a DownloadSource for folder.
DownloadFolderSource(Config)
- Constructor for class javazoom.download.
DownloadFolderSource
DownloadImpl
- class javazoom.download.
DownloadImpl
.
This class is the core of Download4J.
DownloadImpl(String, String, DownloadListener)
- Constructor for class javazoom.download.
DownloadImpl
Constructs and initializes Download4J.
DownloadListener
- interface javazoom.download.
DownloadListener
.
This interface defines the DownloadListener contract.
DownloadServlet
- class javazoom.download.
DownloadServlet
.
This class implements a servlet to download files through DownloadImpl.
DownloadServlet()
- Constructor for class javazoom.download.
DownloadServlet
DownloadSource
- class javazoom.download.
DownloadSource
.
This class defines the API a DownloadSource extended class must implement.
DownloadSource(Config)
- Constructor for class javazoom.download.
DownloadSource
DownloadZipSource
- class javazoom.download.
DownloadZipSource
.
This class implements a DownloadSource for ZIP archive.
DownloadZipSource(Config)
- Constructor for class javazoom.download.
DownloadZipSource
E
encode(char[])
- Static method in class javazoom.download.util.
Base64
Encode char array to Base64 formatted char array.
encode(int)
- Static method in class javazoom.download.util.
Base64
Encodes a 6-bit value (0..63) into a Base64 character.
encode(String)
- Static method in class javazoom.download.util.
Base64
Encode string to Base64 formatted char array.
endDocument()
- Method in class javazoom.download.util.
MimeHandler
SAX2 - endDocument callback.
endDocument()
- Method in class javazoom.download.util.
ConfigHandler
SAX2 - endDocument.
endElement(String, String, String)
- Method in class javazoom.download.util.
MimeHandler
SAX2 - endElement callback.
endElement(String, String, String)
- Method in class javazoom.download.util.
ConfigHandler
SAX2 - endElement
F
FileInfo
- class javazoom.download.util.
FileInfo
.
This class provides information about downloaded and downloadable files.
FileInfo(String, String, String, String, String, boolean, int, String, String)
- Constructor for class javazoom.download.util.
FileInfo
Construts a FileInfo.
FILENAMEPARAMETER
- Static variable in class javazoom.download.
DownloadServlet
Parameter name for multilanguage : Default is name
FOLDER
- Static variable in class javazoom.download.
DownloadImpl
FolderConfig
- class javazoom.download.util.
FolderConfig
.
This class implements a Config for Folder.
FolderConfig()
- Constructor for class javazoom.download.util.
FolderConfig
G
getConfig()
- Method in class javazoom.download.
DownloadSource
Returns current Config (Folder, Zip or Database)
getConfig()
- Method in class javazoom.download.util.
ConfigHandler
Returns an instance of Config (Folder, ZIP or Database).
getConfigPath()
- Method in class javazoom.download.util.
ConfigHandler
Returns path to XML configuration file.
getContentDisposition()
- Method in class javazoom.download.util.
FileInfo
Gets Content-Disposition for the file
getContentType()
- Method in class javazoom.download.util.
FileInfo
Gets Content-Type for the file
getCredentials()
- Method in class javazoom.download.util.
DatabaseConfig
Gets credentials to connect the database.
getDataLength(FileInfo)
- Method in class javazoom.download.
DownloadDatabaseSource
Returns file length or -1 if file is not found or not readable.
getDataLength(FileInfo)
- Method in class javazoom.download.
DownloadImpl
Checks if data available are for download.
getDataLength(FileInfo)
- Method in class javazoom.download.
DownloadZipSource
Returns file length or -1 if file is not found or not readable.
getDataLength(FileInfo)
- Method in class javazoom.download.
DownloadFolderSource
Returns file length or -1 if file is not found or not readable.
getDataLength(FileInfo)
- Method in class javazoom.download.
DownloadSource
Returns file length or -1 if file is not found or not readable.
getDriver()
- Method in class javazoom.download.util.
DatabaseConfig
Returns database driver classname.
getExtension(String)
- Static method in class javazoom.download.util.
FileInfo
Gets file extension for any filename.
getFileInfo(String)
- Method in class javazoom.download.
DownloadBean
Returns FileInfo instance for filename.
getFilename()
- Method in class javazoom.download.
DownloadBean
Gets filename of last download.
getFilename()
- Method in class javazoom.download.util.
FileInfo
Gets filename.
getFilenameExtension()
- Method in class javazoom.download.util.
FileInfo
Gets file extension without ".".
getFiles()
- Method in class javazoom.download.util.
Config
Returns Download4J FileInfo.
getImplementation()
- Method in class javazoom.download.util.
DatabaseConfig
Returns DownloadSource implementation.
getInstance()
- Static method in class javazoom.download.util.
Debug
Gets the Debug instance for traces.
getLogFolder()
- Method in class javazoom.download.util.
ConfigHandler
Gets log folder (Default is null)
getLogin()
- Method in class javazoom.download.util.
FileInfo
Gets login that protects file.
getLogLevel()
- Method in class javazoom.download.util.
Debug
Gets level of traces.
getLogLevel()
- Method in class javazoom.download.util.
ConfigHandler
Gets log level (Default is 0).
getMaxDownload()
- Method in class javazoom.download.util.
FileInfo
Gets maximum download hits allowed for the file.
getMaxDownload(String)
- Method in class javazoom.download.
DownloadBean
Returns max number of downloads for filename.
getMimes()
- Method in class javazoom.download.util.
MimeHandler
Returns Mime types.
getPassword()
- Method in class javazoom.download.util.
FileInfo
Gets password that protects file.
getPath()
- Method in class javazoom.download.util.
ZipConfig
Returns ZIP archive path.
getPath()
- Method in class javazoom.download.util.
FolderConfig
Return folder's path.
getPath()
- Method in class javazoom.download.util.
FileInfo
Gets path to filename.
getProperties()
- Method in class javazoom.download.util.
Config
Returns Download4J properties.
getSchema()
- Method in class javazoom.download.util.
DatabaseConfig
Returns database schema (table name + column name) in Properties.
getTotalDownload()
- Method in class javazoom.download.util.
FileInfo
Gets total download hits for the file.
getTotalDownload(String)
- Method in class javazoom.download.
DownloadBean
Returns download hits for filename.
getTotalIncompleteDownload()
- Method in class javazoom.download.util.
FileInfo
Gets total incomplete download hits (for instance stopped by end-user) for the file.
getTotalIncompleteDownload(String)
- Method in class javazoom.download.
DownloadBean
Returns number of incomplete downloads for filename.
getUrl()
- Method in class javazoom.download.util.
DatabaseConfig
Gets database URL for connection.
getUrlMapping()
- Method in class javazoom.download.util.
FileInfo
Gets URL mapping.
I
INFO
- Static variable in class javazoom.download.util.
Debug
init()
- Method in class javazoom.download.
DownloadServlet
Initializes DownloadServlet.
isZipEnabled()
- Method in class javazoom.download.util.
FileInfo
Gets zip on-the-fly state.
J
javazoom.download
- package javazoom.download
javazoom.download.util
- package javazoom.download.util
L
LOGFILEDATEFORMAT
- Static variable in class javazoom.download.
DownloadImpl
Default log file date format : -yyyy-MM-dd_HH-mm
LOGFILEEXTENSION
- Static variable in class javazoom.download.
DownloadImpl
Default log file extension : .log
LOGFILENAME
- Static variable in class javazoom.download.
DownloadImpl
Default log file prefix : download4j
M
MimeHandler
- class javazoom.download.util.
MimeHandler
.
This class implements a SAX2 handler to read Download4J XML mime types.
MimeHandler()
- Constructor for class javazoom.download.util.
MimeHandler
Constructs a MimeHandler.
P
PANIC
- Static variable in class javazoom.download.util.
Debug
performDownload(HttpServletRequest, HttpServletResponse)
- Method in class javazoom.download.
DownloadServlet
Processes the download.
process(String, Properties, HttpServletResponse)
- Method in class javazoom.download.
DownloadImpl
Runs download in the incoming thread.
R
REALM
- Static variable in class javazoom.download.
DownloadImpl
HTTP Realm name for Download4J, Default is Download4J Realm
resetTotalDownload()
- Method in class javazoom.download.util.
FileInfo
Cleans total downloads counter.
resetTotalIncompleteDownload()
- Method in class javazoom.download.util.
FileInfo
Cleans total incomplete downloads counter.
S
SECUREFILENAME
- Static variable in class javazoom.download.
DownloadServlet
Enables/Disables filename security : Default is true
setCredentials(Properties)
- Method in class javazoom.download.util.
DatabaseConfig
Sets credentials to connect the database.
setDriver(String)
- Method in class javazoom.download.util.
DatabaseConfig
Sets database driver classname.
setFiles(Vector)
- Method in class javazoom.download.util.
Config
Sets Download4J FileInfo.
setFileWriter(String)
- Method in class javazoom.download.util.
Debug
Sets fileERR as messages output
setImplementation(String)
- Method in class javazoom.download.util.
DatabaseConfig
Sets DownloadSource implementation for database.
setLbcs(char[])
- Static method in class javazoom.download.util.
Base64
set the line break chracters for use in encoding output.
setLogLevel(int)
- Method in class javazoom.download.util.
Debug
Sets level of traces. 0 : PANIC
1 : PANIC + INFO
2 : PANIC + INFO + DEBUG
setPath(String)
- Method in class javazoom.download.util.
ZipConfig
Sets path to ZIP archive.
setPath(String)
- Method in class javazoom.download.util.
FolderConfig
Sets folder's path.
setProperties(Properties)
- Method in class javazoom.download.util.
Config
Sets Download4J properties.
setSchema(Properties)
- Method in class javazoom.download.util.
DatabaseConfig
Sets database schema.
setStdErrWriter()
- Method in class javazoom.download.util.
Debug
Sets Standard ERR as messages output.
setStdOutWriter()
- Method in class javazoom.download.util.
Debug
Sets Standard OUT as messages output.
setUrl(String)
- Method in class javazoom.download.util.
DatabaseConfig
Sets database URL for connection.
startDocument()
- Method in class javazoom.download.util.
MimeHandler
SAX2 - startDocument callback.
startDocument()
- Method in class javazoom.download.util.
ConfigHandler
SAX2 - startDocument.
startElement(String, String, String, Attributes)
- Method in class javazoom.download.util.
MimeHandler
SAX2 - startElement callback.
startElement(String, String, String, Attributes)
- Method in class javazoom.download.util.
ConfigHandler
SAX2 - startElement.
T
trace(int, String)
- Method in class javazoom.download.util.
Debug
Traces message to output.
translationTable
- Static variable in class javazoom.download.util.
Base64
the Base64 translation table; does the same as 'encode()', but this way decoding should be faster.
U
UNKNOWN
- Static variable in class javazoom.download.
DownloadImpl
update(Vector)
- Method in class javazoom.download.
DownloadBean
Updates FileInfo for download files (DownloadListener callback).
update(Vector)
- Method in interface javazoom.download.
DownloadListener
Updates Vector of FileInfo (Downloaded files state).
updateDownload(int)
- Method in class javazoom.download.util.
FileInfo
Updates total download counter.
updateFilename(String)
- Method in class javazoom.download.
DownloadBean
State updated for filename (DownloadListener callback).
updateFilename(String)
- Method in interface javazoom.download.
DownloadListener
Updates filename.
updateIncompleteDownload(int)
- Method in class javazoom.download.util.
FileInfo
Updates total incomplete download counter.
Z
ZIP
- Static variable in class javazoom.download.
DownloadImpl
ZipConfig
- class javazoom.download.util.
ZipConfig
.
This class implements a Config for ZIP archive.
ZipConfig()
- Constructor for class javazoom.download.util.
ZipConfig
ZIPCONTENTTYPE
- Static variable in class javazoom.download.
DownloadImpl
Default content-type for zip files : application/zip
A
B
C
D
E
F
G
I
J
L
M
P
R
S
T
U
Z
Overview
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes