Skip to content

Commit 9d53958

Browse files
committed
Add MountFeature.LOOPBACK_HOST_NAME
1 parent 4141ec8 commit 9d53958

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

src/main/java/org/cryptomator/integrations/mount/MountBuilder.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,18 @@
1313
*/
1414
public interface MountBuilder {
1515

16+
/**
17+
* Use the given host name as the loopback address.
18+
*
19+
* @param hostName string conforming with the uri host part
20+
* @return <code>this</code>
21+
* @throws UnsupportedOperationException If {@link MountFeature#LOOPBACK_HOST_NAME} is not supported
22+
*/
23+
@Contract("_ -> this")
24+
default MountBuilder setLoopbackHostName(String hostName) {
25+
throw new UnsupportedOperationException();
26+
}
27+
1628
/**
1729
* Use the given TCP port of the loopback address.
1830
*

src/main/java/org/cryptomator/integrations/mount/MountFeature.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
* This may be used to show or hide different configuration options depending on the chosen mount provider.
99
*/
1010
public enum MountFeature {
11+
/**
12+
* The builder supports {@link MountBuilder#setLoopbackHostName(String)}.
13+
*/
14+
LOOPBACK_HOST_NAME,
15+
1116
/**
1217
* The provider supports {@link MountProvider#getDefaultLoopbackPort()}
1318
* and the builder requires {@link MountBuilder#setLoopbackPort(int)}.

0 commit comments

Comments
 (0)