@Controller public class ContentReuseFrameworkController extends Object
| Constructor and Description |
|---|
ContentReuseFrameworkController() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<byte[]> |
thumbnailByUrl(String url,
String size,
String type,
javax.servlet.http.HttpServletResponse response)
Retrieves image thumbnails.
|
@RequestMapping(value="/v2/thumbnail-by-url.json",
method=GET)
public org.springframework.http.ResponseEntity<byte[]> thumbnailByUrl(@RequestParam(value="uri",required=false)
String url,
@RequestParam(value="size",required=false,defaultValue="FULL_DOC")
String size,
@RequestParam(value="type",required=false,defaultValue="IMAGE")
String type,
javax.servlet.http.HttpServletResponse response)
throws IOException
url - optional, the URL of the media resource of which a thumbnail should be returned. Note that the URL should be encoded.
When no url is provided a default thumbnail will be returnedsize - optional, the size of the thumbnail, can either be w200 (width 200) or w400 (width 400).type - optional, type of the default thumbnail (media image) in case the thumbnail does not exists or no url is provided, can be: IMAGE, SOUND, VIDEO, TEXT or 3D.response - IOExceptionCopyright © 2017. All rights reserved.