@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 id) |
String |
getJsonErrorMessage(String messageKey,
String cause) |
void |
getPreviewContent(String id,
boolean forceDownload,
String acceptHeader,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
getPreviewInfo(String id,
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/{id}/preview",
method=HEAD)
public void getPreviewInfo(@PathVariable(value="id")
String id,
@RequestHeader(value="Accept",defaultValue="*/*")
String acceptHeader,
javax.servlet.http.HttpServletResponse response)
throws IOException
IOException@RequestMapping(value="/workobjects/{id}/preview",
method=GET)
public void getPreviewContent(@PathVariable(value="id")
String id,
@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/{id}/preview/evictCache",
method=PUT)
public void evictCachedFile(@PathVariable(value="id")
String id)
Copyright © 2010 - 2017 edorasware ag. All Rights Reserved.