@Name(value="contentDiffRestlet") @Scope(value=EVENT) public class ContentDiffRestlet extends BaseNuxeoRestlet
Modifier and Type | Field and Description |
---|---|
protected CoreSession |
documentManager |
protected DocumentModel |
leftDoc |
protected org.jboss.seam.international.LocaleSelector |
localeSelector |
protected NavigationContext |
navigationContext |
protected DocumentModel |
rightDoc |
Constructor and Description |
---|
ContentDiffRestlet() |
Modifier and Type | Method and Description |
---|---|
void |
handle(org.restlet.data.Request req,
org.restlet.data.Response res) |
protected void |
handleContentDiff(org.restlet.data.Response res,
Blob blob,
String mimeType) |
protected void |
handleNoContentDiff(org.restlet.data.Response res,
String xpath,
NuxeoException e) |
getHttpRequest, getHttpResponse, getQueryParamValue, getRestletFullUrl, getUserPrincipal, handleError, handleError, handleError, handleError
getContext, getLogger, init, isStarted, isStopped, setContext, start, stop
@In(create=true) protected NavigationContext navigationContext
@In(create=true) protected transient org.jboss.seam.international.LocaleSelector localeSelector
protected CoreSession documentManager
protected DocumentModel leftDoc
protected DocumentModel rightDoc
public ContentDiffRestlet()
public void handle(org.restlet.data.Request req, org.restlet.data.Response res)
handle
in class org.restlet.Restlet
protected void handleNoContentDiff(org.restlet.data.Response res, String xpath, NuxeoException e)
protected void handleContentDiff(org.restlet.data.Response res, Blob blob, String mimeType) throws IOException
IOException
Copyright © 2015 Nuxeo SA. All rights reserved.