com.xmlserv.app.download
Class DownloadLog

java.lang.Object
  |
  +--com.xmlserv.app.download.DownloadLog

public class DownloadLog
extends java.lang.Object

Handle the download logging table.


Constructor Summary
DownloadLog()
           
 
Method Summary
static void log(java.sql.Connection con, java.lang.String downloadid, java.lang.String username, java.lang.String target, long size)
          Log a download.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DownloadLog

public DownloadLog()
Method Detail

log

public static void log(java.sql.Connection con,
                       java.lang.String downloadid,
                       java.lang.String username,
                       java.lang.String target,
                       long size)
                throws XMLServException
Log a download.
Parameters:
con - The DB connection
downlaodid - The DownloadID from basket_content_formats
username - The username (if any)
target - The path and filename of the file downloaded.
size - The total filesize in bytes.