Package org.apache.sshd.sftp.client.impl
Class AbstractSftpFileAttributeView
- java.lang.Object
-
- org.apache.sshd.common.util.logging.AbstractLoggingBean
-
- org.apache.sshd.sftp.client.impl.AbstractSftpFileAttributeView
-
- All Implemented Interfaces:
AttributeView
,FileAttributeView
- Direct Known Subclasses:
SftpAclFileAttributeView
,SftpPosixFileAttributeView
public abstract class AbstractSftpFileAttributeView extends AbstractLoggingBean implements FileAttributeView
- Author:
- Apache MINA SSHD Project
-
-
Field Summary
Fields Modifier and Type Field Description protected LinkOption[]
options
protected Path
path
protected SftpFileSystemProvider
provider
-
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractSftpFileAttributeView(SftpFileSystemProvider provider, Path path, LinkOption... options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Path
getPath()
String
name()
SftpFileSystemProvider
provider()
protected SftpClient.Attributes
readRemoteAttributes()
protected void
writeRemoteAttributes(SftpClient.Attributes attrs)
-
-
-
Field Detail
-
provider
protected final SftpFileSystemProvider provider
-
path
protected final Path path
-
options
protected final LinkOption[] options
-
-
Constructor Detail
-
AbstractSftpFileAttributeView
protected AbstractSftpFileAttributeView(SftpFileSystemProvider provider, Path path, LinkOption... options)
-
-
Method Detail
-
name
public String name()
- Specified by:
name
in interfaceAttributeView
-
provider
public final SftpFileSystemProvider provider()
- Returns:
- The underlying
SftpFileSystemProvider
used to provide the view functionality
-
readRemoteAttributes
protected SftpClient.Attributes readRemoteAttributes() throws IOException
- Throws:
IOException
-
writeRemoteAttributes
protected void writeRemoteAttributes(SftpClient.Attributes attrs) throws IOException
- Throws:
IOException
-
-