public class STKAssetRenderer extends Object implements info.magnolia.dam.api.AssetRenderer
Constructor and Description |
---|
STKAssetRenderer(STKTemplatingFunctions stkTemplatingFunctions) |
Modifier and Type | Method and Description |
---|---|
boolean |
canRender(info.magnolia.dam.api.Asset asset,
com.google.common.net.MediaType to)
Checks if the provided
Asset and the MediaType can
be rendered by this AssetRenderer . |
info.magnolia.dam.api.AssetRendition |
render(info.magnolia.dam.api.Asset asset,
com.google.common.net.MediaType to,
String renditionName) |
boolean |
supports(com.google.common.net.MediaType from,
com.google.common.net.MediaType to)
Checks if the provided
MediaType s are supported by this
AssetRenderer . |
@Inject public STKAssetRenderer(STKTemplatingFunctions stkTemplatingFunctions)
public boolean supports(com.google.common.net.MediaType from, com.google.common.net.MediaType to)
MediaType
s are supported by this
AssetRenderer
.supports
in interface info.magnolia.dam.api.AssetRenderer
public boolean canRender(info.magnolia.dam.api.Asset asset, com.google.common.net.MediaType to)
Asset
and the MediaType
can
be rendered by this AssetRenderer
.canRender
in interface info.magnolia.dam.api.AssetRenderer
supports(com.google.common.net.MediaType, com.google.common.net.MediaType)
public info.magnolia.dam.api.AssetRendition render(info.magnolia.dam.api.Asset asset, com.google.common.net.MediaType to, String renditionName)
render
in interface info.magnolia.dam.api.AssetRenderer
Copyright © 2008–2015 Magnolia International Ltd.. All rights reserved.