@Name(value="previewRestlet") @Scope(value=EVENT) public class PreviewRestlet extends BaseNuxeoRestlet
Modifier and Type | Field and Description |
---|---|
protected CoreSession |
documentManager |
protected org.jboss.seam.international.LocaleSelector |
localeSelector |
protected NavigationContext |
navigationContext |
protected static List<String> |
previewInProcessing |
protected ResourcesAccessor |
resourcesAccessor |
protected DocumentModel |
targetDocument |
Constructor and Description |
---|
PreviewRestlet() |
Modifier and Type | Method and Description |
---|---|
void |
handle(org.restlet.data.Request req,
org.restlet.data.Response res) |
protected void |
handleNoPreview(org.restlet.data.Response res,
String xpath,
Exception e) |
protected void |
handlePreview(org.restlet.data.Response res,
Blob blob,
String mimeType) |
getHttpRequest, getHttpResponse, getQueryParamValue, getRestletFullUrl, getUserPrincipal, handleError, handleError, handleError, handleError
getContext, getLogger, init, isStarted, isStopped, setContext, start, stop
@In(create=true) protected NavigationContext navigationContext
protected CoreSession documentManager
protected DocumentModel targetDocument
@In(create=true) protected transient org.jboss.seam.international.LocaleSelector localeSelector
@In(create=true) protected transient ResourcesAccessor resourcesAccessor
protected static final List<String> previewInProcessing
public PreviewRestlet()
public void handle(org.restlet.data.Request req, org.restlet.data.Response res)
handle
in class org.restlet.Restlet
protected void handleNoPreview(org.restlet.data.Response res, String xpath, Exception e)
protected void handlePreview(org.restlet.data.Response res, Blob blob, String mimeType) throws IOException
IOException
Copyright © 2015 Nuxeo SA. All rights reserved.