Skip to content

Commit fbef896

Browse files
committed
Implement home interface.
1 parent 6918527 commit fbef896

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

hub/src/main/java/cloud/katta/protocols/hub/HubSession.java

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,12 @@
44

55
package cloud.katta.protocols.hub;
66

7-
import ch.cyberduck.core.Credentials;
8-
import ch.cyberduck.core.DisabledListProgressListener;
9-
import ch.cyberduck.core.Host;
10-
import ch.cyberduck.core.HostKeyCallback;
11-
import ch.cyberduck.core.HostPasswordStore;
12-
import ch.cyberduck.core.ListService;
13-
import ch.cyberduck.core.LocaleFactory;
14-
import ch.cyberduck.core.LoginCallback;
15-
import ch.cyberduck.core.OAuthTokens;
16-
import ch.cyberduck.core.PasswordStoreFactory;
17-
import ch.cyberduck.core.Profile;
18-
import ch.cyberduck.core.ProtocolFactory;
19-
import ch.cyberduck.core.Session;
7+
import ch.cyberduck.core.*;
208
import ch.cyberduck.core.exception.BackgroundException;
219
import ch.cyberduck.core.exception.ConnectionCanceledException;
2210
import ch.cyberduck.core.exception.InteroperabilityException;
2311
import ch.cyberduck.core.exception.LoginCanceledException;
12+
import ch.cyberduck.core.features.AttributesFinder;
2413
import ch.cyberduck.core.features.Home;
2514
import ch.cyberduck.core.features.Scheduler;
2615
import ch.cyberduck.core.http.HttpSession;
@@ -195,6 +184,12 @@ public <T> T _getFeature(final Class<T> type) {
195184
if(type == Scheduler.class) {
196185
return (T) access;
197186
}
187+
if(type == Home.class) {
188+
return (T) (Home) Home::root;
189+
}
190+
if(type == AttributesFinder.class) {
191+
return (T) (AttributesFinder) (f, l) -> f.attributes();
192+
}
198193
return host.getProtocol().getFeature(type);
199194
}
200195
}

0 commit comments

Comments
 (0)