File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed
src/main/java/org/cryptomator/integrations/mount Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 1313 */
1414public 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 *
Original file line number Diff line number Diff line change 88 * This may be used to show or hide different configuration options depending on the chosen mount provider.
99 */
1010public 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)}.
You can’t perform that action at this time.
0 commit comments