Uses of Class
wjhk.jupload2.exception.JUploadException

Packages that use JUploadException
wjhk.jupload2.exception Some application specific exceptions. 
wjhk.jupload2.filedata This package allows you to change the file relative behaviour: this page describes how to override the default behaviour, to fullfill your needs (for instance add data compression, preload check, new data about files in the upload to the server.. 
wjhk.jupload2.policies This package contains the upload policies: they give you hook entry points, to override the default applet behaviour with a minimum of java code. 
wjhk.jupload2.upload Implementations of the various protocol-specific tasks. 
 

Uses of JUploadException in wjhk.jupload2.exception
 

Subclasses of JUploadException in wjhk.jupload2.exception
 class JUploadExceptionStopAddingFiles
          This exception is a trick, to stop adding files to the file list, when too many files don't match the allowed extension (see wjhk.jupload2.gui.FilePanelDataModel2#addFile(File, File)), or any other control of the current upload policy (see UploadPolicy.createFileData(File, File).
 class JUploadExceptionTooBigFile
          This exception indicates, that the file that is to be uploaded is too big.
 class JUploadExceptionUploadFailed
          This exception occurs when an upload failed.
 class JUploadIOException
          This class should be used for all implementations of FileData or UploadPolicy that want to throw an IO exception, and need to be conform with the interface definition.
 

Uses of JUploadException in wjhk.jupload2.filedata
 

Methods in wjhk.jupload2.filedata that throw JUploadException
 void PictureFileData.beforeUpload()
          If this pictures needs transformation, a temporary file is created.
 void FileData.beforeUpload()
          Prepare the fileData to upload.
 void DefaultFileData.beforeUpload()
          Prepare the fileData to upload.
(package private)  void PictureFileData.createTranformedPictureFile(wjhk.jupload2.filedata.helper.ImageHelper imageHelper)
          Creates a transformed picture file of the given max width and max height.
 Image PictureFileData.getImage(Canvas canvas, boolean shadow)
          This method creates a new Image, from the current picture.
 InputStream PictureFileData.getInputStream()
          This function create an input stream for this file.
 InputStream FileData.getInputStream()
          This function creates an InputStream from this file.
 InputStream DefaultFileData.getInputStream()
          This function creates an InputStream from this file.
 long PictureFileData.getUploadLength()
          Returns the number of bytes, for this upload.
 long FileData.getUploadLength()
          Get size of upload, which may be different from the actual file length.
 long DefaultFileData.getUploadLength()
          Get size of upload, which may be different from the actual file length.
 

Uses of JUploadException in wjhk.jupload2.policies
 

Methods in wjhk.jupload2.policies that return JUploadException
 JUploadException UploadPolicy.getLastException()
          Indicates that an error occurs.
 JUploadException DefaultUploadPolicy.getLastException()
           
 

Methods in wjhk.jupload2.policies with parameters of type JUploadException
 void DefaultUploadPolicy.setLastException(JUploadException exception)
          Set the last exception.
 

Methods in wjhk.jupload2.policies that throw JUploadException
 void UploadPolicy.afterUpload(Exception e, String serverOutput)
          This method is called after an upload, whether it is successful or not.
 void DefaultUploadPolicy.afterUpload(Exception e, String serverOutput)
           
 void CoppermineUploadPolicy.afterUpload(Exception e, String serverOutput)
           
 boolean UploadPolicy.checkUploadSuccess(int status, String msg, String body)
          This method returns true, if upload is a success.
 boolean DefaultUploadPolicy.checkUploadSuccess(int status, String msg, String body)
          The default behavior (see DefaultUploadPolicy) is to check that the stringUploadSuccess applet parameter is present in the response from the server.
protected  String DefaultUploadPolicy.getEncodedFilename(String filename)
          returns the filename and encodes it, if necessary
 String UploadPolicy.getUploadFilename(FileData fileData, int index)
          Get the original name of the file on the disk.
 String PictureUploadPolicy.getUploadFilename(FileData fileData, int index)
           
 String DefaultUploadPolicy.getUploadFilename(FileData fileData, int index)
           
 String UploadPolicy.getUploadName(FileData fileData, int index)
          Get an upload filename, that is to be send in the HTTP upload request.
 String DefaultUploadPolicy.getUploadName(FileData fileData, int index)
           
protected  void DefaultUploadPolicy.setAfterUploadURL(String afterUploadURL)
          Set the DefaultUploadPolicy.afterUploadURL
(package private)  void PictureUploadPolicy.setKeepOrigExtension(boolean keepOrigExtension)
           
protected  void DefaultUploadPolicy.setNbFilesPerRequest(int nbFilesPerRequest)
           
 void UploadPolicy.setPostURL(String postURL)
          The URL can change during the life of our policy ...
 void DefaultUploadPolicy.setPostURL(String postURL)
           
 void UploadPolicy.setProperty(String prop, String value)
          This allow runtime modifications of properties.
 void PictureUploadPolicy.setProperty(String prop, String value)
          This method manages the applet parameters that are specific to this class.
 void DefaultUploadPolicy.setProperty(String prop, String value)
          This method manages all applet parameters.
 void CoppermineUploadPolicy.setProperty(String prop, String value)
          This method only handles the albumId parameter, which is the only applet parameter that is specific to this class.
protected  void DefaultUploadPolicy.setServerProtocol(String value)
           
protected  void DefaultUploadPolicy.setSslVerifyCert(String mode)
           
protected  void DefaultUploadPolicy.setStringUploadError(String stringUploadError)
           
protected  void DefaultUploadPolicy.setStringUploadSuccess(String stringUploadSuccess)
           
protected  void DefaultUploadPolicy.setStringUploadWarning(String stringUploadWarning)
           
(package private)  void PictureUploadPolicy.setTargetPictureFormat(String targetPictureFormat)
          we expect e.g.
 void UploadPolicy.setUrlToSendErrorTo(String urlToSendErrorTo)
           
 void DefaultUploadPolicy.setUrlToSendErrorTo(String urlToSendErrorTo)
          
 

Constructors in wjhk.jupload2.policies that throw JUploadException
CoppermineUploadPolicy(wjhk.jupload2.context.JUploadContext juploadContext)
           
CustomizedNbFilesPerRequestUploadPolicy(wjhk.jupload2.context.JUploadContext theContext)
          Deprecated.  
DefaultUploadPolicy(wjhk.jupload2.context.JUploadContext juploadContext)
          The main constructor : use default values, and the given postURL.
FileByFileUploadPolicy(wjhk.jupload2.context.JUploadContext juploadContext)
          Deprecated.  
FilesTogetherUploadPolicy(wjhk.jupload2.context.JUploadContext juploadContext)
          The JUpload constructor for this upload policy.
PictureUploadPolicy(wjhk.jupload2.context.JUploadContext juploadContext)
          The standard constructor, which transmit most informations to the super.Constructor().
 

Uses of JUploadException in wjhk.jupload2.upload
 

Fields in wjhk.jupload2.upload declared as JUploadException
(package private)  JUploadException FileUploadManagerThread.uploadException
          Thread Exception, if any occurred during upload.
 

Methods in wjhk.jupload2.upload that return JUploadException
 JUploadException FileUploadManagerThread.getUploadException()
          Get the last upload exception that occurs.
 

Methods in wjhk.jupload2.upload with parameters of type JUploadException
 void FileUploadManagerThread.setUploadException(JUploadException uploadException)
          Stores the last upload exception that occurs.
 

Methods in wjhk.jupload2.upload that throw JUploadException
(package private) abstract  void DefaultFileUploadThread.afterFile(int index)
          Idem as DefaultFileUploadThread.beforeFile(int), but is called after each file (and each chunks for each file).
 void FileUploadManagerThread.anotherFileHasBeenSent(FileData newlyUploadedFileData)
          This method is called each time a new file is sent to the server.
(package private)  void FileUploadThreadHTTP.beforeFile(int index)
           
(package private)  void FileUploadThreadFTP.beforeFile(int index)
           
(package private) abstract  void DefaultFileUploadThread.beforeFile(int index)
          This method is called before sending the bytes corresponding to the file whose index is given in argument.
(package private)  void FileUploadThreadHTTP.beforeRequest()
           
(package private)  void FileUploadThreadFTP.beforeRequest()
           
(package private) abstract  void DefaultFileUploadThread.beforeRequest()
          This method is called before starting of each request.
 void UploadFileData.beforeUpload()
          Prepare the fileData to upload.
(package private)  void FileUploadThreadHTTP.cleanAll()
           
(package private) abstract  void DefaultFileUploadThread.cleanAll()
          Clean any used resource, like a 'permanent' connection.
(package private)  void FileUploadThreadHTTP.cleanRequest()
           
(package private)  void FileUploadThreadFTP.cleanRequest()
           
(package private) abstract  void DefaultFileUploadThread.cleanRequest()
          Clean any used resource of the last executed request.
 void FileUploadManagerThread.currentRequestIsFinished(UploadFileData[] currentPacket)
          This method is called when the server response for the upload indicates a success.
(package private)  int FileUploadThreadHTTP.finishRequest()
           
(package private)  int FileUploadThreadFTP.finishRequest()
           
(package private) abstract  int DefaultFileUploadThread.finishRequest()
          This method is called at the end of each request.
 InputStream UploadFileData.getInputStream()
          This function creates an InputStream from this file.
(package private)  String UploadFileData.getMD5()
          Retrieves the MD5 sum of the file.
 UploadFileData[] FileUploadManagerThread.getNextPacket()
          Returns the next packet of files, for upload, according to the current upload policy.
(package private)  OutputStream FileUploadThreadHTTP.getOutputStream()
           
(package private) abstract  OutputStream DefaultFileUploadThread.getOutputStream()
          Get the output stream where the files should be written for upload.
 String UploadFileData.getUploadFilename(int index)
          Retrieves the file name, that should be used in the server application.
 long UploadFileData.getUploadLength()
          This methods stores locally the upload length.
 String UploadFileData.getUploadName(int index)
          Retrieves the upload file name, that should be sent to the server.
 void FileUploadManagerThread.nbBytesUploaded(long nbBytes)
          Used by the UploadFileData#uploadFile(java.io.OutputStream, long) for each uploaded buffer
 void FileUploadThread.setFileUploadThreadManager(FileUploadManagerThread fileUploadManagerThread)
          Changes the FileUploadManagerThread.
 void DefaultFileUploadThread.setFileUploadThreadManager(FileUploadManagerThread fileUploadManagerThread)
          Changes the FileUploadManagerThread.
 void FileUploadManagerThread.setUploadStatus(int numOfFileInCurrentRequest, int uploadStatus)
          Indicate the current state of the upload, to allow a correct display of the upload progress bar.
(package private)  void FileUploadThreadHTTP.startRequest(long contentLength, boolean bChunkEnabled, int chunkPart, boolean bLastChunk)
           
(package private) abstract  void DefaultFileUploadThread.startRequest(long contentLength, boolean bChunkEnabled, int chunkPart, boolean bLastChunk)
          This method is called for each upload request to the server.
(package private)  void UploadFileData.uploadFile(OutputStream outputStream, long amount)
          This methods writes the file data (see FileData.getInputStream() to the given outputStream (the output toward the HTTP server).
 

Constructors in wjhk.jupload2.upload that throw JUploadException
FileUploadManagerThread(UploadPolicy uploadPolicy)
          Standard constructor of the class.
FileUploadManagerThread(UploadPolicy uploadPolicy, FileUploadThread fileUploadThreadParam)
          Internal constructor.
FileUploadThreadFTP(UploadPolicy uploadPolicy, FileUploadManagerThread fileUploadManagerThread)
          Creates a new instance.