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

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

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

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

@Override
public void startElement(String name, Attributes attrs) {
  switch(name) {
    case "Settings":
      String type = attrs.getValue("xsi:type");
      switch(type) {
        case "GoogleSettings":
          current = new Host(protocols.forType(Protocol.Type.googlestorage));
          break;
        case "S3Settings":
        case "DunkelSettings":
          current = new Host(protocols.forType(Protocol.Type.s3));
          break;
        default:
          log.warn("Unsupported connection type:" + type);
          break;
      }
      break;
  }
}
origin: iterate-ch/cyberduck

switch(type) {
  case "google_cloud_storage":
    protocol = protocols.forType(Protocol.Type.googlestorage);
    break;
  case "gdrive":
    protocol = protocols.forType(Protocol.Type.googledrive);
    break;
  default:
ch.cyberduck.coreProtocolFactoryforType

Popular methods of ProtocolFactory

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

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getApplicationContext (Context)
  • getSharedPreferences (Context)
  • setRequestProperty (URLConnection)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • PhpStorm for WordPress
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