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

How to use
onCapabilities
method
in
org.eclipse.jgit.transport.ProtocolV2Hook

Best Java code snippets using org.eclipse.jgit.transport.ProtocolV2Hook.onCapabilities (Showing top 4 results out of 315)

origin: org.eclipse.jgit/org.eclipse.jgit

private void serviceV2() throws IOException {
  if (biDirectionalPipe) {
    // Just like in service(), the capability advertisement
    // is sent only if this is a bidirectional pipe. (If
    // not, the client is expected to call
    // sendAdvertisedRefs() on its own.)
    protocolV2Hook
        .onCapabilities(CapabilitiesV2Request.builder().build());
    for (String s : getV2CapabilityAdvertisement()) {
      pckOut.writeString(s + "\n"); //$NON-NLS-1$
    }
    pckOut.end();
    while (!serveOneCommandV2()) {
      // Repeat until an empty command or EOF.
    }
    return;
  }
  try {
    serveOneCommandV2();
  } finally {
    while (0 < rawIn.skip(2048) || 0 <= rawIn.read()) {
      // Discard until EOF.
    }
    rawOut.stopBuffering();
  }
}
origin: org.eclipse.jgit/org.eclipse.jgit

    .onCapabilities(CapabilitiesV2Request.builder().build());
for (String s : getV2CapabilityAdvertisement()) {
  adv.writeOne(s);
origin: berlam/github-bucket

private void serviceV2() throws IOException {
  if (biDirectionalPipe) {
    // Just like in service(), the capability advertisement
    // is sent only if this is a bidirectional pipe. (If
    // not, the client is expected to call
    // sendAdvertisedRefs() on its own.)
    protocolV2Hook
        .onCapabilities(CapabilitiesV2Request.builder().build());
    for (String s : getV2CapabilityAdvertisement()) {
      pckOut.writeString(s + "\n"); //$NON-NLS-1$
    }
    pckOut.end();
    while (!serveOneCommandV2()) {
      // Repeat until an empty command or EOF.
    }
    return;
  }
  try {
    serveOneCommandV2();
  } finally {
    while (0 < rawIn.skip(2048) || 0 <= rawIn.read()) {
      // Discard until EOF.
    }
    rawOut.stopBuffering();
  }
}
origin: berlam/github-bucket

    .onCapabilities(CapabilitiesV2Request.builder().build());
for (String s : getV2CapabilityAdvertisement()) {
  adv.writeOne(s);
org.eclipse.jgit.transportProtocolV2HookonCapabilities

Popular methods of ProtocolV2Hook

  • onFetch
  • onLsRefs

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getContentResolver (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • JCheckBox (javax.swing)
  • Top 17 Plugins for Android Studio
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