Tabnine Logo
ProtocolFactory.find
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: iterate-ch/cyberduck

/**
 * @return List of enabled protocols
 */
public List<Protocol> find() {
  return this.find(Protocol::isEnabled);
}
origin: iterate-ch/cyberduck

/**
 * @param identifier Serialized protocol reference or scheme
 * @param provider   Custom inherited protocol definition
 * @return Matching protocol or null if no match
 */
public Protocol forName(final String identifier, final String provider) {
  return this.forName(this.find(), identifier, provider);
}
origin: iterate-ch/cyberduck

public Protocol forType(final Protocol.Type type) {
  final List<Protocol> enabled = this.find();
  return this.forType(enabled, type);
}
origin: iterate-ch/cyberduck

public Protocol forScheme(final String scheme, final Protocol fallback) {
  return this.forScheme(this.find(), scheme, fallback);
}
origin: iterate-ch/cyberduck

  public Profile deserialize(Object serialized) {
    final Deserializer<String> dict = deserializer.create(serialized);
    final String protocol = dict.stringForKey("Protocol");
    if(StringUtils.isNotBlank(protocol)) {
      final Protocol parent = protocols.forName(protocols.find(new Predicate<Protocol>() {
        @Override
        public boolean test(final Protocol protocol) {
          // Return default registered protocol specification as parent but not other profile
          return !(protocol.isEnabled() || protocol.isBundled());
        }
      }), protocol, null);
      if(null == parent) {
        log.error(String.format("Unknown protocol %s in profile", protocol));
        return null;
      }
      return new Profile(parent, dict);
    }
    log.error("Missing protocol in profile");
    return null;
  }
}
origin: iterate-ch/cyberduck

for(Protocol p : protocols.find(new DefaultProtocolPredicate(EnumSet.of(Protocol.Type.ftp, Protocol.Type.sftp, Protocol.Type.dav)))) {
  append(p, builder);
for(Protocol p : protocols.find(new DefaultProtocolPredicate(EnumSet.of(Protocol.Type.s3, Protocol.Type.swift, Protocol.Type.azure, Protocol.Type.b2, Protocol.Type.googlestorage)))) {
  append(p, builder);
for(Protocol p : protocols.find(new DefaultProtocolPredicate(
  EnumSet.of(Protocol.Type.dropbox, Protocol.Type.onedrive, Protocol.Type.googledrive, Protocol.Type.dracoon)))) {
  append(p, builder);
for(Protocol p : protocols.find(new DefaultProtocolPredicate(EnumSet.of(Protocol.Type.file)))) {
  append(p, builder);
    PreferencesFactory.get().getProperty("profiles.folder.name")).getAbbreviatedPath()));
builder.append(StringUtils.LF);
for(Protocol p : protocols.find(new ProfileProtocolPredicate())) {
  append(p, builder);
origin: iterate-ch/cyberduck

this.protocolCombobox.removeAllItems();
final ProtocolFactory protocols = ProtocolFactory.get();
for(Protocol protocol : protocols.find(new DefaultProtocolPredicate(
  EnumSet.of(Protocol.Type.ftp, Protocol.Type.sftp, Protocol.Type.dav)))) {
  this.addProtocol(protocol);
for(Protocol protocol : protocols.find(new DefaultProtocolPredicate(
  EnumSet.of(Protocol.Type.s3, Protocol.Type.swift, Protocol.Type.azure, Protocol.Type.b2, Protocol.Type.dracoon, Protocol.Type.googlestorage)))) {
  this.addProtocol(protocol);
for(Protocol protocol : protocols.find(new DefaultProtocolPredicate(
  EnumSet.of(Protocol.Type.dropbox, Protocol.Type.onedrive, Protocol.Type.googledrive)))) {
  this.addProtocol(protocol);
for(Protocol protocol : protocols.find(new DefaultProtocolPredicate(
  EnumSet.of(Protocol.Type.file)))) {
  this.addProtocol(protocol);
for(Protocol protocol : protocols.find(new ProfileProtocolPredicate())) {
  this.addProtocol(protocol);
origin: iterate-ch/cyberduck

this.protocolPopup.setAction(Foundation.selector("protocolSelectionChanged:"));
this.protocolPopup.removeAllItems();
for(Protocol protocol : protocols.find(new DefaultProtocolPredicate(
  EnumSet.of(Protocol.Type.ftp, Protocol.Type.sftp, Protocol.Type.dav)))) {
  this.addProtocol(protocol);
for(Protocol protocol : protocols.find(new DefaultProtocolPredicate(
  EnumSet.of(Protocol.Type.s3, Protocol.Type.swift, Protocol.Type.azure, Protocol.Type.b2, Protocol.Type.dracoon, Protocol.Type.googlestorage)))) {
  this.addProtocol(protocol);
for(Protocol protocol : protocols.find(new DefaultProtocolPredicate(
  EnumSet.of(Protocol.Type.dropbox, Protocol.Type.onedrive, Protocol.Type.googledrive)))) {
  this.addProtocol(protocol);
for(Protocol protocol : protocols.find(new DefaultProtocolPredicate(
  EnumSet.of(Protocol.Type.file)))) {
  this.addProtocol(protocol);
for(Protocol protocol : protocols.find(new ProfileProtocolPredicate())) {
  this.addProtocol(protocol);
ch.cyberduck.coreProtocolFactoryfind

Popular methods of ProtocolFactory

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

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSharedPreferences (Context)
  • onRequestPermissionsResult (Fragment)
  • getSystemService (Context)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JCheckBox (javax.swing)
  • JFileChooser (javax.swing)
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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