Java Code Examples for org.apache.sshd.common.subsystem.sftp.SftpConstants#SSH_FX_FAILURE

The following examples show how to use org.apache.sshd.common.subsystem.sftp.SftpConstants#SSH_FX_FAILURE . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MockSftpClient.java    From xenon with Apache License 2.0 4 votes vote down vote up
@Override
public void unlock(Handle handle, long offset, long length) throws IOException {
    throw new SftpException(SftpConstants.SSH_FX_FAILURE, "This is a test");
}
 
Example 2
Source File: MockSftpClient.java    From xenon with Apache License 2.0 4 votes vote down vote up
@Override
public void lock(Handle handle, long offset, long length, int mask) throws IOException {
    throw new SftpException(SftpConstants.SSH_FX_FAILURE, "This is a test");
}
 
Example 3
Source File: MockSftpClient.java    From xenon with Apache License 2.0 4 votes vote down vote up
@Override
public void link(String linkPath, String targetPath, boolean symbolic) throws IOException {
    throw new SftpException(SftpConstants.SSH_FX_FAILURE, "This is a test");
}
 
Example 4
Source File: MockSftpClient.java    From xenon with Apache License 2.0 4 votes vote down vote up
@Override
public String readLink(String path) throws IOException {
    throw new SftpException(SftpConstants.SSH_FX_FAILURE, "This is a test");
}
 
Example 5
Source File: MockSftpClient.java    From xenon with Apache License 2.0 4 votes vote down vote up
@Override
public void setStat(Handle handle, Attributes attributes) throws IOException {
    throw new SftpException(SftpConstants.SSH_FX_FAILURE, "This is a test");
}
 
Example 6
Source File: MockSftpClient.java    From xenon with Apache License 2.0 4 votes vote down vote up
@Override
public void setStat(String path, Attributes attributes) throws IOException {
    throw new SftpException(SftpConstants.SSH_FX_FAILURE, "This is a test");
}
 
Example 7
Source File: MockSftpClient.java    From xenon with Apache License 2.0 4 votes vote down vote up
@Override
public Attributes stat(Handle handle) throws IOException {
    throw new SftpException(SftpConstants.SSH_FX_FAILURE, "This is a test");
}
 
Example 8
Source File: MockSftpClient.java    From xenon with Apache License 2.0 4 votes vote down vote up
@Override
public Attributes lstat(String path) throws IOException {
    throw new SftpException(SftpConstants.SSH_FX_FAILURE, "This is a test");
}
 
Example 9
Source File: MockSftpClient.java    From xenon with Apache License 2.0 4 votes vote down vote up
@Override
public Attributes stat(String path) throws IOException {
    throw new SftpException(SftpConstants.SSH_FX_FAILURE, "This is a test");
}
 
Example 10
Source File: MockSftpClient.java    From xenon with Apache License 2.0 4 votes vote down vote up
@Override
public String canonicalPath(String path) throws IOException {
    throw new SftpException(SftpConstants.SSH_FX_FAILURE, "This is a test");
}
 
Example 11
Source File: MockSftpClient.java    From xenon with Apache License 2.0 4 votes vote down vote up
@Override
public void close() throws IOException {
    throw new SftpException(SftpConstants.SSH_FX_FAILURE, "This is a test");
}
 
Example 12
Source File: MockSftpClient.java    From xenon with Apache License 2.0 4 votes vote down vote up
@Override
public CloseableHandle openDir(String path) throws IOException {
    throw new SftpException(SftpConstants.SSH_FX_FAILURE, "This is a test");
}
 
Example 13
Source File: MockSftpClient.java    From xenon with Apache License 2.0 4 votes vote down vote up
@Override
public void rmdir(String path) throws IOException {
    throw new SftpException(SftpConstants.SSH_FX_FAILURE, "This is a test");
}
 
Example 14
Source File: MockSftpClient.java    From xenon with Apache License 2.0 4 votes vote down vote up
@Override
public void mkdir(String path) throws IOException {
    throw new SftpException(SftpConstants.SSH_FX_FAILURE, "This is a test");
}
 
Example 15
Source File: MockSftpClient.java    From xenon with Apache License 2.0 4 votes vote down vote up
@Override
public void write(Handle handle, long fileOffset, byte[] src, int srcOffset, int len) throws IOException {
    throw new SftpException(SftpConstants.SSH_FX_FAILURE, "This is a test");
}
 
Example 16
Source File: MockSftpClient.java    From xenon with Apache License 2.0 4 votes vote down vote up
@Override
public int read(Handle handle, long fileOffset, byte[] dst, int dstOffset, int len, AtomicReference<Boolean> eofSignalled) throws IOException {
    throw new SftpException(SftpConstants.SSH_FX_FAILURE, "This is a test");
}
 
Example 17
Source File: MockSftpClient.java    From xenon with Apache License 2.0 4 votes vote down vote up
@Override
public void rename(String oldPath, String newPath, Collection<CopyMode> options) throws IOException {
    throw new SftpException(SftpConstants.SSH_FX_FAILURE, "This is a test");
}
 
Example 18
Source File: MockSftpClient.java    From xenon with Apache License 2.0 4 votes vote down vote up
@Override
public void remove(String path) throws IOException {
    throw new SftpException(SftpConstants.SSH_FX_FAILURE, "This is a test");
}
 
Example 19
Source File: MockSftpClient.java    From xenon with Apache License 2.0 4 votes vote down vote up
@Override
public void close(Handle handle) throws IOException {
    throw new SftpException(SftpConstants.SSH_FX_FAILURE, "This is a test");
}
 
Example 20
Source File: MockSftpClient.java    From xenon with Apache License 2.0 4 votes vote down vote up
@Override
public Iterable<DirEntry> readDir(String path) throws IOException {
    throw new SftpException(SftpConstants.SSH_FX_FAILURE, "This is a test");
}