| Modifier and Type | Field and Description |
|---|---|
| private final ChannelSession | |
| public static final Set | |
| public static final List | |
| public static final List | |
| public static final NavigableMap | DEFAULT_SUPPORTED_CLIENT_EXTENSIONS
The default reported supported client extensions (case insensitive) |
| private final SftpErrorStatusDataHandler | |
| private final SftpFileSystemAccessor | |
| private final SftpEventListener | |
| private final Collection | |
| private final UnsupportedAttributePolicy |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected NavigableMap | addMissingAttribute(Path file, NavigableMap<String, Object> current, String name, FileInfoExtractor<?> x, LinkOption... options)
|
| public boolean | addSftpEventListener(SftpEventListener
The listener)SftpEventListener instance to add - never nullImplements org. Register a listener instance |
| protected int | |
| protected void | |
| protected String | Returns: The appended valueThe buffer, ServerSession Buffer to append toThe session)ServerSession for which this extension is addedAppends the "newline" extension to the buffer Note if overriding this method make sure you either do not append anything or use the correct extension name |
| protected List | |
| protected void | appendSupported2Extension(Buffer
The buffer, Collection<String> Buffer to append toThe extra extensions that are available and can be reported - may be extras)null/emptyAppends the "supported2" extension to the buffer Note if overriding this method make sure you either do not append anything or use the correct extension name |
| protected void | appendSupportedExtension(Buffer
The buffer, Collection<String> Buffer to append toThe extra extensions that are available and can be reported - may be extras)null/emptyAppends the "supported" extension to the buffer Note if overriding this method make sure you either do not append anything or use the correct extension name |
| protected Map | Returns: The version propertiesThe buffer, Map<String, ?> Buffer to append toThe currently available version properties - ignored if versionProperties, ServerSession null/empty. The code
expects the following values:
The session)ServerSession for which these properties are addedAppends the "vendor-id" extension to the buffer Note if overriding this method make sure you either do not append anything or use the correct extension name |
| protected String | Returns: The apended valueThe buffer, String Buffer to append toThe recommended value - ignored if value, ServerSession null/emptyThe session)ServerSession for which this extension is addedAppends the "versions" extension to the buffer Note if overriding this method make sure you either do not append anything or use the correct extension name |
| public Boolean | Returns: whether there are symlinks in the path to this file, or null if unknownthe file to check for symlink presence path, boolean whether to never follow symlinks in the parent paths neverFollowSymLinks, LinkOption[] whether the file itself can be a symlink options)A utility function to validate that the directories leading up to a file are not symlinks |
| protected Map. | Returns: A "pair" whose key is the negotiated version and value aString of comma
separated values representing all the supported versions. null if validation failed
and an appropriate status message was sentThe buffer, int Buffer containing the requestThe SSH message ID to be used to send the failure message if required id, int The proposed version value proposed, int The failure opcode to send if validation fails failureOpcode)Checks if a proposed version is within supported range Note if the user forced a specific value via the
|
| protected abstract void | |
| protected void | |
| protected abstract void | |
| protected void | |
| protected void | doCheckFileHash(int id, Path file, NamedFactory<? extends Digest> factory, long startOffset, long length, int blockSize, Buffer buffer)
|
| protected abstract void | doCheckFileHash(int id, String targetType, String target, Collection<String> algos, long startOffset, long length, int blockSize, Buffer buffer)
|
| protected void | |
| protected abstract void | |
| protected void | |
| protected abstract void | doCopyData(int id, String readHandle, long readOffset, long readLength, String writeHandle, long writeOffset)
|
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected abstract void | |
| protected void | |
| protected abstract Map | |
| protected abstract void | |
| protected void | |
| protected void | |
| protected void | |
| protected Map | |
| protected void | |
| protected void | |
| protected void | |
| protected abstract byte[] | |
| protected byte[] | |
| protected void | |
| protected abstract String | |
| protected void | |
| protected abstract String | |
| protected void | |
| protected abstract void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected abstract int | doRead(int id, String handle, long offset, int length, byte[] data, int doff, AtomicReference<Boolean> eof)
|
| protected abstract void | |
| protected int | Returns: Number of written entriesRequest id id, String The (opaque) handle assigned to this directory handle, DirectoryHandle The dir, Buffer DirectoryHandleThe buffer, int Buffer to write the resultsMax. buffer size maxSize, boolean Whether to follow symbolic links when querying the directory contents followLinks)
|
| protected void | |
| protected AbstractMap. | Returns: A "pair" containing the local linkPath and its referenced symbolic linkRequest identifier id, String Referenced path path)
|
| protected void | |
| protected AbstractMap. | |
| protected AbstractMap. | |
| protected void | doRemove(int
Deletion request ID id, Path Path to deleteWhether the requested path represents a directory or a regular file isDirectory)Called when need to delete a file / directory - also informs the |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | doSetAttributes(int cmd, String extension, Path file, Map<String, ?> attributes, boolean followLinks)
|
| protected void | |
| protected void | |
| protected void | |
| protected SpaceAvailableExtensionInfo | |
| protected void | |
| protected Map | |
| protected void | |
| protected void | |
| protected void | |
| protected abstract void | |
| protected void | |
| protected abstract void | |
| protected void | |
| protected void | |
| protected void | |
| protected abstract void | |
| protected void | |
| protected abstract void | |
| protected void | executeExtendedCommand(Buffer
The command buffer, int BufferThe request id id, String The extension name extension)
|
| protected NavigableMap | |
| protected NavigableMap | Returns: AMap of the retrieved attributesThe path, int Path location for the required attributesA mask of the original required attributes - ignored by the default implementation flags, LinkOption... The options)LinkOptions to use in order to access the file if necessary
|
| public SftpErrorStatusDataHandler | |
| public SftpFileSystemAccessor | |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| protected OpenSSHLimitsExtensionInfo | |
| protected LinkOption[] | |
| public ChannelSession | |
| public SftpEventListener | |
| protected String | |
| protected Map | |
| public UnsupportedAttributePolicy | |
| protected NavigableMap | |
| protected void | handleSetFileAttributeFailure(Path file, String view, String attribute, Object value, Collection<String> unsupported, Exception e)
|
| protected NavigableMap | |
| protected void | |
| protected void | handleUserPrincipalLookupServiceException(Class<? extends Principal> principalType, String name, IOException e)
|
| protected Path | |
| protected abstract Buffer | |
| protected void | |
| protected Map | |
| protected NavigableMap | |
| public boolean | removeSftpEventListener(SftpEventListener
The listener)SftpEventListener instance to remove - never nullImplements org. Remove a listener instance |
| protected Collection | |
| protected Path | |
| protected NavigableMap | |
| protected NavigableMap | Returns: AMap of the extra attributes whose values need to be updated in the original mapNote it is allowed to specify values which override existing ones - the
default implementation does not override values that have a non- The file, int Path location for the required attributesA mask of the original required attributes - ignored by the default implementation flags, Map<String, Object> The current, LinkOption... Map of attributes already retrieved - may be null/empty and/or
unmodifiableThe options)LinkOptions to use in order to access the file if necessaryCalled by |
| protected Object | resolveMissingFileAttributeValue(Path file, String name, Object value, FileInfoExtractor<?> x, LinkOption... options)
|
| protected String | |
| protected Path | |
| protected List | |
| protected boolean | |
| protected NavigableMap | |
| protected abstract void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | sendStatus(Buffer
A buffer, int Buffer to be used to build the status replyCommand identifier id, Throwable Thrown exception e, int The command that was attempted cmd, Object... The relevant command arguments - Note: provided only for logging purposes and
subject to type and/or order change at any version args)Invoked when an exception was thrown due to the execution of some SFTP command |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | setFileRawViewAttribute(Path file, String view, String attribute, Object value, LinkOption... options)
|
| protected void | |
| protected <E extends IOException> E | |
| protected <E extends IOException> E | signalRemovalPreConditionFailure(int id, String pathValue, Path path, E thrown, boolean isRemoveDirectory)
|
| protected GroupPrincipal | |
| protected UserPrincipal | |
| protected < The generic handle type H extends Handle> H | Returns: The cast typeThe original handle id handle, Handle The resolved h, Class<H> Handle instanceThe expected handle type type)Makes sure that the local handle is not null and of the specified type |
| public Boolean | |
| protected Boolean | Returns: ABoolean indicating whether to accept/reject the proposal. If null then
rejection response has been sent, otherwise and appropriate response is generatedThe buffer, int Buffer holding the requestThe request id id, String The proposed value proposal)
|
| protected AbstractMap. | Returns: ASimpleImmutableEntry whose key is the absolute normalized
Path and value is a Boolean indicating its statusThe request identifier id, String The original path path, Path The resolve f, LinkOption... PathThe options)LinkOptions to use to verify file existence and access
|
| protected void | |
| protected void | writeDirEntry(ServerSession session, int id, Buffer buffer, int index, Path f, String shortName, SftpClient.
|
| protected void | writeDirEntry(int
Request id id, DirectoryHandle The dir, Map<String, Path> entries, Buffer DirectoryHandleThe buffer, int Buffer to write the resultsZero-based index of the entry to be written index, Path The entry f, String PathThe entry short name shortName, LinkOption... The options)LinkOptions to use for querying the entry-s attributes
|