@Controller public class PreviewRestService extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DOCUMENT_NOT_FOUND_MESSAGE_KEY |
static String |
GENERAL_ERROR_MESSAGE_KEY |
Constructor and Description |
---|
PreviewRestService() |
Modifier and Type | Method and Description |
---|---|
void |
evictCachedFile(String ambiguousId) |
String |
getJsonErrorMessage(String messageKey,
String cause) |
void |
getPreviewContent(String ambiguousId,
boolean forceDownload,
String acceptHeader,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
getPreviewInfo(String ambiguousId,
String acceptHeader,
javax.servlet.http.HttpServletResponse response) |
public static final String DOCUMENT_NOT_FOUND_MESSAGE_KEY
public static final String GENERAL_ERROR_MESSAGE_KEY
@RequestMapping(value="/workobjects/{ambiguousId}/preview", method=HEAD) public void getPreviewInfo(@PathVariable String ambiguousId, @RequestHeader(value="Accept",defaultValue="*/*") String acceptHeader, javax.servlet.http.HttpServletResponse response) throws IOException
IOException
@RequestMapping(value="/workobjects/{ambiguousId}/preview", method=GET) public void getPreviewContent(@PathVariable String ambiguousId, @RequestParam(required=false,defaultValue="false") boolean forceDownload, @RequestHeader(value="Accept",defaultValue="*/*") String acceptHeader, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
IOException
@ResponseStatus(value=OK) @RequestMapping(value="/workobjects/{ambiguousId}/preview/evictCache", method=PUT) public void evictCachedFile(@PathVariable String ambiguousId)
Copyright © 2010 - 2017 edorasware ag. All Rights Reserved.