public class DiffPicturesServlet extends javax.servlet.http.HttpServlet
leftDocId
and rightDocId
are requiredDiffPictures
altExtension
is special. If the pictures to compare are _not_ jpeg, png, or gif, _and_ if this
parameter is set, then the result picture will be of this kind. Useful when comparing 2 psd or tif files for example,
and the browser can't display themcommandline, xpath, fuzz, highlightColor, lowlightColor and repo are optional Utility to force cleanup of temporary files created on the server: /nuxeo/diffPictures?cleanup=true&leftDocId=123456&rightDocId=456789& WARNING: Why can't I use the public static void downloadBlob() from DownloadServlet?
Modifier and Type | Field and Description |
---|---|
protected static int |
BUFFER_SIZE |
Constructor and Description |
---|
DiffPicturesServlet() |
Modifier and Type | Method and Description |
---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
protected void |
sendBlobResult(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
Blob blob) |
protected void |
sendTextResponse(javax.servlet.http.HttpServletResponse resp,
String response) |
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
protected static final int BUFFER_SIZE
public DiffPicturesServlet()
protected void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
doGet
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
protected void sendTextResponse(javax.servlet.http.HttpServletResponse resp, String response) throws IOException
IOException
protected void sendBlobResult(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, Blob blob) throws IOException
IOException
Copyright © 2015 Nuxeo SA. All rights reserved.