Uses of Class
wjhk.jupload2.exception.JUploadException

Packages that use JUploadException
wjhk.jupload2.exception Some application specific exceptions. 
wjhk.jupload2.filedata This allows you to change the file relative behaviour. 
wjhk.jupload2.policies This package contains the upload policies. 
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 th actual file length.
 long DefaultFileData.getUploadLength()
          Get size of upload, which may be different from th actual file length.
 

Uses of JUploadException in wjhk.jupload2.policies
 

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 behaviour (see DefaultUploadPolicy) is to check that the stringUploadSuccess applet parameter is present in the response from the server.
 String UploadPolicy.getUploadFilename(FileData fileData, int index)
          Get the original name of the file on the disk.
 String DefaultUploadPolicy.getUploadFilename(FileData fileData, int index)
           
protected  void DefaultUploadPolicy.setAfterUploadURL(String afterUploadURL)
          Set the DefaultUploadPolicy.afterUploadURL
 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.setUrlToSendErrorTo(String urlToSendErrorTo)
           
 

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

Uses of JUploadException in wjhk.jupload2.upload
 

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).
(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(int firstFileToUploadParam, int nbFilesToUploadParam)
           
(package private)  void FileUploadThreadFTP.beforeRequest(int firstFileToUploadParam, int nbFilesToUploadParam)
           
(package private) abstract  void DefaultFileUploadThread.beforeRequest(int firstFileToUploadParam, int nbFilesToUploadParam)
          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.
(package private)  int FileUploadThreadHTTP.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.
(package private)  OutputStream FileUploadThreadHTTP.getOutputStream()
           
(package private) abstract  OutputStream DefaultFileUploadThread.getOutputStream()
          Get the output stream where the files should be written for upload.
 String HttpConnect.getProtocol()
          Retrieve the protocol to be used for the postURL of the current policy.
 String UploadFileData.getUploadFilename(int index)
          Retrieves the file name, that should be used in the server application.
 long UploadFileData.getUploadLength()
           
(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
FileUploadThreadFTP(FileData[] filesDataParam, UploadPolicy uploadPolicy, JProgressBar progress)
          Creates a new instance.