Package org.eclipse.orion.server.git.objects

Examples of org.eclipse.orion.server.git.objects.Diff


      String pattern = relativePath;
      pattern = pattern.isEmpty() ? null : pattern;
      if (parts == null || "uris,diff".equals(parts) || "diff,uris".equals(parts)) //$NON-NLS-1$ //$NON-NLS-2$
        return handleMultiPartGet(request, response, db, gitSegment, pattern);
      if ("uris".equals(parts)) { //$NON-NLS-1$
        OrionServlet.writeJSONResponse(request, response, new Diff(getURI(request), db).toJSON(), JsonURIUnqualificationStrategy.ALL_NO_GIT);
        return true;
      }
      if ("diff".equals(parts)) //$NON-NLS-1$
        return handleGetDiff(request, response, db, gitSegment, pattern, response.getOutputStream());
      if ("diffs".equals(parts)) //$NON-NLS-1$
View Full Code Here


    Writer out = new OutputStreamWriter(outputStream);
    try {
      out.write("--" + boundary + EOL); //$NON-NLS-1$
      out.write(ProtocolConstants.HEADER_CONTENT_TYPE + ": " + ProtocolConstants.CONTENT_TYPE_JSON + EOL + EOL); //$NON-NLS-1$
      out.flush();
      JSONObject getURIs = new Diff(getURI(request), db).toJSON();
      JsonURIUnqualificationStrategy.ALL.run(request, getURIs);

      out.write(getURIs.toString());
      out.write(EOL + "--" + boundary + EOL); //$NON-NLS-1$
      out.write(ProtocolConstants.HEADER_CONTENT_TYPE + ": plain/text" + EOL + EOL); //$NON-NLS-1$
View Full Code Here

TOP

Related Classes of org.eclipse.orion.server.git.objects.Diff

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.