public class FileUploadThreadFTP extends DefaultFileUploadThread
FileUploadThread
class. ftp://username:password@myhost.com:21/directoryWhere everything but the host is optional. There is another parameter that can be passed to the applet named 'binary' which will set the file transfer mode based on the value. The possible values here are 'true' or 'false'. It was intended to be somewhat intelligent by looking at the file extension and basing the transfer mode on that, however, it was never implemented. Feel free to! Also, there is a 'passive' parameter which also has a value of 'true' or 'false' which sets the connection type to either active or passive mode.
FileUploadThread
class, FileUploadThread
,
DefaultFileUploadThread
Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
Pattern |
ftpPattern
This pattern defines the groups and pattern of the ftp syntax.
|
responseBody, responseMsg, uploadPolicy
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
FileUploadThreadFTP(UploadPolicy uploadPolicy,
BlockingQueue<UploadFilePacket> packetQueue,
FileUploadManagerThread fileUploadManagerThread)
Creates a new instance.
|
close, getPacketQueue, getResponseBody, getResponseMsg, normalizeCRLF, quoteCRLF, run, setFileUploadThreadManager
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public final Pattern ftpPattern
public FileUploadThreadFTP(UploadPolicy uploadPolicy, BlockingQueue<UploadFilePacket> packetQueue, FileUploadManagerThread fileUploadManagerThread) throws JUploadException
uploadPolicy
- packetQueue
- The queue from wich packets to upload are available.fileUploadManagerThread
- JUploadException
IllegalArgumentException
- if any error occurs. message is errorCopyright © 2015. All rights reserved.