Tabnine Logo
Response$Error
Code IndexAdd Tabnine to your IDE (free)

How to use
Response$Error
in
org.eclipse.jgit.lfs.server

Best Java code snippets using org.eclipse.jgit.lfs.server.Response$Error (Showing top 2 results out of 315)

origin: sonia.jgit/org.eclipse.jgit.lfs.server

  private void addObjectInfo(Response.Body body, LfsObject o)
      throws IOException {
    Response.ObjectInfo info = new Response.ObjectInfo();
    body.objects.add(info);
    info.oid = o.oid;
    info.size = o.size;
    LongObjectId oid = LongObjectId.fromString(o.oid);
    if (repository.getSize(oid) >= 0) {
      info.actions = new HashMap<>();
      info.actions.put(DOWNLOAD,
          repository.getDownloadAction(oid));
    } else {
      info.error = new Response.Error();
      info.error.code = SC_NOT_FOUND;
      info.error.message = MessageFormat.format(
          LfsServerText.get().objectNotFound,
          oid.getName());
    }
  }
}
origin: org.eclipse.jgit/org.eclipse.jgit.lfs.server

  private void addObjectInfo(Response.Body body, LfsObject o)
      throws IOException {
    Response.ObjectInfo info = new Response.ObjectInfo();
    body.objects.add(info);
    info.oid = o.oid;
    info.size = o.size;
    LongObjectId oid = LongObjectId.fromString(o.oid);
    if (repository.getSize(oid) >= 0) {
      info.actions = new HashMap<>();
      info.actions.put(DOWNLOAD,
          repository.getDownloadAction(oid));
    } else {
      info.error = new Response.Error();
      info.error.code = SC_NOT_FOUND;
      info.error.message = MessageFormat.format(
          LfsServerText.get().objectNotFound,
          oid.getName());
    }
  }
}
org.eclipse.jgit.lfs.serverResponse$Error

Javadoc

Describes an error to be returned by the LFS batch API

Most used methods

  • <init>

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • runOnUiThread (Activity)
  • setRequestProperty (URLConnection)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • ImageIO (javax.imageio)
  • Best plugins for Eclipse
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