public class CDMFrXSLTHelper extends Object implements Serviceable, Contextualizable
Modifier and Type | Field and Description |
---|---|
private static AmetysObjectResolver |
_ametysObjectResolver |
private static Context |
_context |
Constructor and Description |
---|
CDMFrXSLTHelper() |
Modifier and Type | Method and Description |
---|---|
private static String |
_resolve(String resolvedUri) |
private static String |
_resolveResource(String uri,
boolean download,
String prefix,
String suffix) |
void |
contextualize(Context context) |
static String |
resolve(String type,
String uri)
Resolve the URI of a resource
|
static String |
resolve(String type,
String uri,
boolean download)
Resolve the URI of a resource
|
String |
resolveBoundedImage(String type,
String uri,
int maxHeight,
int maxWidth)
Resolve the URI of a resource image
|
String |
resolveBoundedImage(String type,
String uri,
int maxHeight,
int maxWidth,
boolean download)
Resolve the asbsolute URI of a resource image
|
static String |
resolveImage(String type,
String uri,
int height,
int width)
Resolve the URI of a resource image
|
static String |
resolveImage(String type,
String uri,
int height,
int width,
boolean download)
Resolve the absolute URI of a resource image
|
void |
service(ServiceManager smanager) |
private static AmetysObjectResolver _ametysObjectResolver
public CDMFrXSLTHelper()
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
ServiceException
public static String resolve(String type, String uri)
type
- Type name (defined by the extension to use)uri
- URI depending on the typepublic static String resolve(String type, String uri, boolean download)
type
- Type name (defined by the extension to use)uri
- URI depending on the typedownload
- Is this uri for download purposes.public static String resolveImage(String type, String uri, int height, int width)
type
- Type name (defined by the extension to use)uri
- URI depending on the typeheight
- the heightwidth
- the widthpublic static String resolveImage(String type, String uri, int height, int width, boolean download)
type
- Type name (defined by the extension to use)uri
- URI depending on the typeheight
- the heightwidth
- the widthdownload
- Is this uri for download purposes.public String resolveBoundedImage(String type, String uri, int maxHeight, int maxWidth)
type
- Type name (defined by the extension to use)uri
- URI depending on the typemaxHeight
- the max heightmaxWidth
- the max widthpublic String resolveBoundedImage(String type, String uri, int maxHeight, int maxWidth, boolean download)
type
- Type name (defined by the extension to use)uri
- URI depending on the typemaxHeight
- the max heightmaxWidth
- the max widthdownload
- Is this uri for download purposes.private static String _resolveResource(String uri, boolean download, String prefix, String suffix)