public TransferPlistReader(final DeserializerFactory deserializer) { this(ProtocolFactory.get(), deserializer); }
public CommandLineUriParser(final CommandLine input) { this(input, ProtocolFactory.get()); }
public HostParser() { this(ProtocolFactory.get()); }
public TransferDictionary(final DeserializerFactory deserializer) { this(ProtocolFactory.get(), deserializer); }
public AbstractRendezvous() { this(ProtocolFactory.get()); }
public ProfilePlistReader(final DeserializerFactory deserializer) { this(ProtocolFactory.get(), deserializer); }
public AWSSessionCredentialsRetriever(final X509TrustManager trust, final X509KeyManager key, final TranscriptListener transcript, final String url) { this(trust, key, ProtocolFactory.get(), transcript, url); }
public ProfileDictionary() { this(ProtocolFactory.get()); }
public TerminalOptionsInputValidator() { this(ProtocolFactory.get()); }
public RendezvousResponder() { this(ProtocolFactory.get()); }
public HostDictionary() { this(ProtocolFactory.get()); }
public HostDictionary(final DeserializerFactory deserializer) { this(ProtocolFactory.get(), deserializer); }
public ProfileDictionary(final DeserializerFactory deserializer) { this(ProtocolFactory.get(), deserializer); }
public CommandLinePathParser(final CommandLine input) { this(input, ProtocolFactory.get()); }
public TransferDictionary() { this(ProtocolFactory.get()); }
protected abstract void parse(final ProtocolFactory protocols, Local file) throws AccessDeniedException;
/** * Parses URL in the format ftp://username:pass@hostname:portnumber/path/to/file * * @param url URL * @return Bookmark */ public static Host parse(final String url) { final Host parsed = parse(ProtocolFactory.get(), ProtocolFactory.get().forName( preferences.getProperty("connection.protocol.default")), url); if(log.isDebugEnabled()) { log.debug(String.format("Parsed %s as %s", url, parsed)); } return parsed; }
@Action public void protocolComboboxClicked(NSPopUpButton sender) { final Protocol selected = ProtocolFactory.get().forName(sender.selectedItem().representedObject()); preferences.setProperty("connection.protocol.default", selected.getIdentifier()); preferences.setProperty("connection.port.default", selected.getDefaultPort()); }
protected static String getScheme(final Protocol protocol) { if(new BundledProtocolPredicate().test(protocol)) { for(String scheme : protocol.getSchemes()) { // Return first custom scheme registered return scheme; } // Return default name return protocol.getIdentifier(); } // Find parent protocol definition for profile final Protocol standard = ProtocolFactory.get().forName(protocol.getIdentifier()); if(Arrays.equals(protocol.getSchemes(), standard.getSchemes())) { // No custom scheme set in profile return protocol.getProvider(); } for(String scheme : protocol.getSchemes()) { // First custom scheme in profile return scheme; } // Default vendor string of third party profile return protocol.getProvider(); } }
@Action public void addBookmarkButtonClicked(final ID sender) { final Host bookmark; if(this.isMounted()) { Path selected = this.getSelectedPath(); if(null == selected || !selected.isDirectory()) { selected = this.workdir(); } bookmark = new HostDictionary().deserialize(pool.getHost().serialize(SerializerFactory.get())); // Make sure a new UUID is asssigned for duplicate bookmark.setUuid(null); bookmark.setDefaultPath(selected.getAbsolute()); } else { bookmark = new Host(ProtocolFactory.get().forName(preferences.getProperty("connection.protocol.default"))); } this.selectBookmarks(BookmarkSwitchSegement.bookmarks); this.addBookmark(bookmark); }