public class PictureTilesRestlets extends BaseStatelessNuxeoRestlet
Modifier and Type | Field and Description |
---|---|
protected static Map<String,PictureTilesCachedEntry> |
cachedAdapters |
protected static int |
MAX_CACHE_LIFE |
session, targetDocRef, targetDocument
Constructor and Description |
---|
PictureTilesRestlets() |
Modifier and Type | Method and Description |
---|---|
protected void |
cacheGC() |
protected PictureTilesAdapter |
getFromCache(DocumentModel doc,
String xpath) |
void |
handle(org.restlet.data.Request req,
org.restlet.data.Response res) |
protected void |
handleNoTiles(org.restlet.data.Response res,
Exception e) |
protected void |
handleSendInfo(org.restlet.data.Response res,
PictureTiles tiles,
String format) |
protected void |
handleSendTest(org.restlet.data.Response res,
String repoId,
String docId,
Integer tileWidth,
Integer tileHeight,
Integer maxTiles) |
protected boolean |
isSameDate(Calendar d1,
Calendar d2) |
protected void |
removeFromCache(String key) |
protected void |
updateCache(DocumentModel doc,
PictureTilesAdapter adapter,
String xpath) |
cleanUp, doHandleStatelessRequest, initRepository, initRepositoryAndTargetDocument
getHttpRequest, getHttpResponse, getQueryParamValue, getRestletFullUrl, getUserPrincipal, handleError, handleError, handleError, handleError, setEntityToBlobOutput
getContext, getLogger, init, isStarted, isStopped, setContext, start, stop
protected static int MAX_CACHE_LIFE
protected static Map<String,PictureTilesCachedEntry> cachedAdapters
public PictureTilesRestlets()
public void handle(org.restlet.data.Request req, org.restlet.data.Response res)
handle
in class BaseStatelessNuxeoRestlet
protected void handleSendTest(org.restlet.data.Response res, String repoId, String docId, Integer tileWidth, Integer tileHeight, Integer maxTiles) throws IOException
IOException
protected void handleSendInfo(org.restlet.data.Response res, PictureTiles tiles, String format)
protected void handleNoTiles(org.restlet.data.Response res, Exception e)
protected void updateCache(DocumentModel doc, PictureTilesAdapter adapter, String xpath)
protected void removeFromCache(String key)
protected boolean isSameDate(Calendar d1, Calendar d2)
protected PictureTilesAdapter getFromCache(DocumentModel doc, String xpath)
protected void cacheGC()
Copyright © 2018 Nuxeo. All rights reserved.