congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ProtocolFactory.get
Code IndexAdd Tabnine to your IDE (free)

How to use
get
method
in
ch.cyberduck.core.ProtocolFactory

Best Java code snippets using ch.cyberduck.core.ProtocolFactory.get (Showing top 20 results out of 315)

origin: iterate-ch/cyberduck

public TransferPlistReader(final DeserializerFactory deserializer) {
  this(ProtocolFactory.get(), deserializer);
}
origin: iterate-ch/cyberduck

public CommandLineUriParser(final CommandLine input) {
  this(input, ProtocolFactory.get());
}
origin: iterate-ch/cyberduck

public HostParser() {
  this(ProtocolFactory.get());
}
origin: iterate-ch/cyberduck

public TransferDictionary(final DeserializerFactory deserializer) {
  this(ProtocolFactory.get(), deserializer);
}
origin: iterate-ch/cyberduck

public AbstractRendezvous() {
  this(ProtocolFactory.get());
}
origin: iterate-ch/cyberduck

public ProfilePlistReader(final DeserializerFactory deserializer) {
  this(ProtocolFactory.get(), deserializer);
}
origin: iterate-ch/cyberduck

public AWSSessionCredentialsRetriever(final X509TrustManager trust, final X509KeyManager key, final TranscriptListener transcript, final String url) {
  this(trust, key, ProtocolFactory.get(), transcript, url);
}
origin: iterate-ch/cyberduck

public ProfileDictionary() {
  this(ProtocolFactory.get());
}
origin: iterate-ch/cyberduck

public TerminalOptionsInputValidator() {
  this(ProtocolFactory.get());
}
origin: iterate-ch/cyberduck

public RendezvousResponder() {
  this(ProtocolFactory.get());
}
origin: iterate-ch/cyberduck

public HostDictionary() {
  this(ProtocolFactory.get());
}
origin: iterate-ch/cyberduck

public HostDictionary(final DeserializerFactory deserializer) {
  this(ProtocolFactory.get(), deserializer);
}
origin: iterate-ch/cyberduck

public ProfileDictionary(final DeserializerFactory deserializer) {
  this(ProtocolFactory.get(), deserializer);
}
origin: iterate-ch/cyberduck

public CommandLinePathParser(final CommandLine input) {
  this(input, ProtocolFactory.get());
}
origin: iterate-ch/cyberduck

public TransferDictionary() {
  this(ProtocolFactory.get());
}
origin: iterate-ch/cyberduck

protected abstract void parse(final ProtocolFactory protocols, Local file) throws AccessDeniedException;
origin: iterate-ch/cyberduck

/**
 * 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;
}
origin: iterate-ch/cyberduck

@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());
}
origin: iterate-ch/cyberduck

  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();
  }
}
origin: iterate-ch/cyberduck

@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);
}
ch.cyberduck.coreProtocolFactoryget

Popular methods of ProtocolFactory

  • forScheme
  • forName
  • find
  • register
  • forType
  • loadDefaultProfiles
    Load profiles embedded in bundles and installed in the application support directory.

Popular in Java

  • Making http post requests using okhttp
  • scheduleAtFixedRate (Timer)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • addToBackStack (FragmentTransaction)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • JLabel (javax.swing)
  • 21 Best Atom Packages for 2021
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now