Package | Description |
---|---|
org.waarp.common.command |
Global classes that store all informations on implemented commands, arguments, reply codes.
|
org.waarp.common.command.exception |
FTP like Exception related to commands
|
org.waarp.common.file |
Classes implementing File, Directory, Authentication and Session Interfaces
|
org.waarp.common.file.filesystembased |
Classes implementing FileInterface and Directory according to a filesystem implementation
|
org.waarp.common.file.passthrough |
Classes implementing FileInterface and Directory according to a pass through implementation (no
storage since data are just pass through this interface)
|
Modifier and Type | Method and Description |
---|---|
void |
CommandInterface.exec()
Execute the command.
|
Modifier and Type | Class and Description |
---|---|
class |
Reply421Exception
421 Service not available, closing control connection.
|
class |
Reply425Exception
425 Can't open data connection.
|
class |
Reply426Exception
426 Connection closed, transfer aborted.
|
class |
Reply450Exception
450 Requested file action not taken.
|
class |
Reply451Exception
451 Requested action aborted: local error in processing.
|
class |
Reply452Exception
452 Requested action not taken.
|
class |
Reply500Exception
500 Syntax error, command unrecognized.
|
class |
Reply501Exception
501 Syntax error in parameters or arguments.
|
class |
Reply502Exception
502 Command not implemented.
|
class |
Reply503Exception
503 Bad sequence of commands.
|
class |
Reply504Exception
504 Command not implemented for that parameter.
|
class |
Reply522Exception
522 Extended Port Failure - unknown network protocol.
|
class |
Reply530Exception
530 Not logged in.
|
class |
Reply534Exception
534 Request denied for policy reasons.
|
class |
Reply550Exception
550 Requested action not taken.
|
class |
Reply552Exception
552 Requested file action aborted.
|
class |
Reply553Exception
553 Requested action not taken.
|
Modifier and Type | Method and Description |
---|---|
boolean |
FileInterface.abortFile()
Try to abort the current transfer if any
|
boolean |
DirInterface.canRead() |
boolean |
FileInterface.canRead() |
boolean |
DirInterface.canWrite() |
boolean |
FileInterface.canWrite() |
boolean |
DirInterface.changeDirectory(String path)
Change directory with the one given as argument
|
boolean |
DirInterface.changeDirectoryNotChecked(String path)
Change directory with the one given as argument without checking existence
|
boolean |
DirInterface.changeParentDirectory()
Change for parent directory
|
boolean |
AbstractDir.changeParentDirectory() |
void |
AbstractFile.clear() |
void |
FileInterface.clear()
Set empty this FtpFile, mark it unReady.
|
boolean |
FileInterface.closeFile()
Close the current FileInterface
|
protected String |
AbstractDir.consolidatePath(String path)
Consolidate Path as relative or absolute path to an absolute path
|
boolean |
FileInterface.delete()
Delete the current FileInterface.
|
boolean |
DirInterface.exists() |
boolean |
FileInterface.exists() |
String |
DirInterface.fileFull(String path,
boolean lsFormat)
Give for 1 file all informations from the given path (could be a file or a directory)
|
long |
DirInterface.getCRC(String path)
Get the CRC of the given FileInterface
|
String |
FileInterface.getFile() |
long |
DirInterface.getFreeSpace() |
DataBlock |
AbstractFile.getMarker() |
DataBlock |
FileInterface.getMarker()
Create a restart from context for the current FileInterface
|
byte[] |
DirInterface.getMD5(String path)
Get the MD5 of the given FileInterface
|
String |
DirInterface.getModificationTime(String path)
Return the Modification time for the path
|
String |
DirInterface.getPwd() |
String |
AbstractDir.getPwd() |
byte[] |
DirInterface.getSHA1(String path)
Get the SHA-1 of the given FileInterface
|
boolean |
FileInterface.isDirectory()
Is the current FileInterface a directory and exists
|
boolean |
DirInterface.isDirectory(String path)
Is the given path a directory and exists
|
boolean |
FileInterface.isFile()
Is the current FileInterface a file and exists
|
boolean |
DirInterface.isFile(String path)
Is the given path a file and exists
|
boolean |
FileInterface.isInReading() |
boolean |
FileInterface.isInWriting() |
long |
FileInterface.length() |
List<String> |
DirInterface.list(String path)
List all files from the given path (could be a file or a directory)
|
List<String> |
DirInterface.listFull(String path,
boolean lsFormat)
List all files with other informations from the given path (could be a file or a directory)
|
String |
DirInterface.mkdir(String directory)
Create the directory associated with the String as path
|
FileInterface |
DirInterface.newFile(String path,
boolean append)
Create a new File
|
boolean |
FileInterface.renameTo(String path)
Rename the current FileInterface into a new filename from argument
|
boolean |
AbstractFile.restartMarker(Restart restart) |
boolean |
FileInterface.restartMarker(Restart restart)
Restart from a Marker for the current FileInterface if any.
|
abstract boolean |
Restart.restartMarker(String marker)
Restart from a Marker for the next FileInterface
|
boolean |
AbstractFile.retrieve() |
boolean |
FileInterface.retrieve()
Ask to retrieve the current FileInterface.
|
String |
DirInterface.rmdir(String directory)
Delete the directory associated with the String as path
|
FileInterface |
DirInterface.setFile(String path,
boolean append)
Set a path as the current FileInterface
|
FileInterface |
AbstractDir.setFile(String path,
boolean append) |
FileInterface |
DirInterface.setUniqueFile()
Set a new unique path as the current FileInterface from the current Directory (STOU)
|
boolean |
AbstractFile.store() |
boolean |
FileInterface.store()
Ask to store the current FileInterface.
|
protected String |
AbstractDir.validatePath(File dir)
Same as validatePath but from a FileInterface
|
String |
DirInterface.validatePath(String path)
Construct and Check if the given path is valid from business point of view (see
AuthInterface ) |
String |
AbstractDir.validatePath(String path) |
protected abstract List<String> |
AbstractDir.wildcardFiles(String pathWithWildcard)
Finds all files matching a wildcard expression (based on '?'
|
Modifier and Type | Method and Description |
---|---|
boolean |
FilesystemBasedFileImpl.abortFile() |
boolean |
FilesystemBasedDirImpl.canRead() |
boolean |
FilesystemBasedFileImpl.canRead() |
boolean |
FilesystemBasedDirImpl.canWrite() |
boolean |
FilesystemBasedFileImpl.canWrite() |
boolean |
FilesystemBasedDirImpl.changeDirectory(String path) |
boolean |
FilesystemBasedDirImpl.changeDirectoryNotChecked(String path) |
void |
FilesystemBasedFileImpl.clear() |
boolean |
FilesystemBasedFileImpl.closeFile() |
boolean |
FilesystemBasedFileImpl.delete() |
boolean |
FilesystemBasedDirImpl.exists() |
boolean |
FilesystemBasedFileImpl.exists() |
String |
FilesystemBasedDirImpl.fileFull(String path,
boolean lsFormat) |
long |
FilesystemBasedDirImpl.getCRC(String path) |
String |
FilesystemBasedFileImpl.getFile() |
protected File |
FilesystemBasedDirImpl.getFileFromPath(String path)
Get the FileInterface from this path, checking first its validity
|
protected File |
FilesystemBasedFileImpl.getFileFromPath(String path)
Get the File from this path, checking first its validity
|
long |
FilesystemBasedDirImpl.getFreeSpace() |
byte[] |
FilesystemBasedDirImpl.getMD5(String path) |
String |
FilesystemBasedDirImpl.getModificationTime(String path) |
byte[] |
FilesystemBasedDirImpl.getSHA1(String path) |
byte[] |
FilesystemBasedDirImpl.getSHA256(String path) |
byte[] |
FilesystemBasedDirImpl.getSHA512(String path) |
protected File |
FilesystemBasedDirImpl.getTrueFile(String path)
Get the true file from the path
|
boolean |
FilesystemBasedFileImpl.isDirectory() |
boolean |
FilesystemBasedDirImpl.isDirectory(String path) |
boolean |
FilesystemBasedFileImpl.isFile() |
boolean |
FilesystemBasedDirImpl.isFile(String path) |
boolean |
FilesystemBasedFileImpl.isInReading() |
boolean |
FilesystemBasedFileImpl.isInWriting() |
long |
FilesystemBasedFileImpl.length() |
List<String> |
FilesystemBasedDirImpl.list(String path) |
List<String> |
FilesystemBasedDirImpl.listFull(String path,
boolean lsFormat) |
String |
FilesystemBasedDirImpl.mkdir(String directory) |
boolean |
FilesystemBasedFileImpl.renameTo(String path) |
String |
FilesystemBasedDirImpl.rmdir(String directory) |
FileInterface |
FilesystemBasedDirImpl.setUniqueFile() |
protected List<String> |
FilesystemBasedDirImpl.wildcardFiles(String pathWithWildcard)
Finds all files matching a wildcard expression (based on '?'
|
Constructor and Description |
---|
FilesystemBasedFileImpl(SessionInterface session,
FilesystemBasedDirImpl dir,
String path,
boolean append) |
Modifier and Type | Method and Description |
---|---|
boolean |
PassthroughBasedFileImpl.abortFile() |
boolean |
PassthroughBasedDirImpl.canRead() |
boolean |
PassthroughBasedFileImpl.canRead() |
boolean |
PassthroughBasedDirImpl.canWrite() |
boolean |
PassthroughBasedFileImpl.canWrite() |
boolean |
PassthroughBasedDirImpl.changeDirectory(String path) |
void |
PassthroughBasedFileImpl.clear() |
boolean |
PassthroughBasedFileImpl.closeFile() |
boolean |
PassthroughBasedFileImpl.delete() |
boolean |
PassthroughBasedDirImpl.exists() |
boolean |
PassthroughBasedFileImpl.exists() |
String |
PassthroughBasedDirImpl.fileFull(String path,
boolean lsFormat) |
long |
PassthroughBasedDirImpl.getCRC(String path) |
String |
PassthroughBasedFileImpl.getFile() |
protected File |
PassthroughBasedDirImpl.getFileFromPath(String path)
Get the File from this path, checking first its validity
|
protected File |
PassthroughBasedFileImpl.getFileFromPath(String path)
Get the File from this path, checking first its validity
|
long |
PassthroughBasedDirImpl.getFreeSpace() |
byte[] |
PassthroughBasedDirImpl.getMD5(String path) |
String |
PassthroughBasedDirImpl.getModificationTime(String path) |
byte[] |
PassthroughBasedDirImpl.getSHA1(String path) |
protected File |
PassthroughBasedDirImpl.getTrueFile(String path)
Get the true file from the path
|
boolean |
PassthroughBasedFileImpl.isDirectory() |
boolean |
PassthroughBasedDirImpl.isDirectory(String path) |
boolean |
PassthroughBasedFileImpl.isFile() |
boolean |
PassthroughBasedDirImpl.isFile(String path) |
boolean |
PassthroughBasedFileImpl.isInReading() |
boolean |
PassthroughBasedFileImpl.isInWriting() |
long |
PassthroughBasedFileImpl.length() |
List<String> |
PassthroughBasedDirImpl.list(String path) |
List<String> |
PassthroughBasedDirImpl.listFull(String path,
boolean lsFormat) |
String |
PassthroughBasedDirImpl.mkdir(String directory) |
boolean |
PassthroughBasedFileImpl.renameTo(String path) |
String |
PassthroughBasedDirImpl.rmdir(String directory) |
FileInterface |
PassthroughBasedDirImpl.setUniqueFile() |
protected List<String> |
PassthroughBasedDirImpl.wildcardFiles(String pathWithWildcard)
Finds all files matching a wildcard expression (based on '?'
|
Constructor and Description |
---|
PassthroughBasedFileImpl(SessionInterface session,
PassthroughBasedDirImpl dir,
String path,
boolean append) |
Copyright © 2009–2019 Waarp. All rights reserved.