Skip to content

Commit e5e6d56

Browse files
committed
Provide access to internal SFTP server
1 parent 9f594be commit e5e6d56

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Fake SFTP Server Rule is available from
2727
<dependency>
2828
<groupId>com.github.stefanbirkner</groupId>
2929
<artifactId>fake-sftp-server-rule</artifactId>
30-
<version>2.0.1</version>
30+
<version>2.1.1</version>
3131
</dependency>
3232

3333
If you upgrade from a version < 2.x to the newest version please read the last

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</parent>
1010

1111
<artifactId>fake-sftp-server-rule</artifactId>
12-
<version>2.1.0-SNAPSHOT</version>
12+
<version>2.1.1</version>
1313
<packaging>jar</packaging>
1414

1515
<name>Fake SFTP Server Rule</name>

src/main/java/com/github/stefanbirkner/fakesftpserver/rule/FakeSftpServerRule.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,19 @@ public FileVisitResult postVisitDirectory(
183183
private FileSystem fileSystem;
184184
private SshServer server;
185185

186+
/**
187+
* Returns the internal SFTP server of the Apache SSHD project.
188+
* If you need personal changes in internal SFTP server that
189+
* are not supported by the rule, you can use this method to get the inner
190+
* internal SFTP server of the rule and change it to suit your needs.
191+
* (Correct use of this feature is the responsibility of the user)
192+
*
193+
* @return the internal SFTP server of the Apache SSHD project.
194+
*/
195+
public SshServer getInternalSshServer() {
196+
return server;
197+
}
198+
186199
/**
187200
* Returns the port of the SFTP server. If the SFTP server listens on an
188201
* auto-allocated port (that means you didn't call {@link #setPort(int)})

0 commit comments

Comments
 (0)