org.mmbase.applications.media.urlcomposers
Class MarkupURLComposer
java.lang.Object
org.mmbase.applications.media.urlcomposers.URLComposer
org.mmbase.applications.media.urlcomposers.FragmentURLComposer
org.mmbase.applications.media.urlcomposers.MarkupURLComposer
public class MarkupURLComposer
- extends FragmentURLComposer
Produces links to (jsp) templates which can present a media
fragment. These templates can e.g. produce pieces of HTML (for use
with object tag), or perhaps a better example are
SMIL-jsp-templates ( with response.setHeader("Content-Type",
"application/smil");)
Depends on a 'template' to be linked to the fragment, or to one of
its parent fragments.
- Since:
- MMBase-1.7
- Author:
- Michiel Meeuwissen, Rob Vermeulen (VPRO)
| Methods inherited from class org.mmbase.applications.media.urlcomposers.URLComposer |
getAcodec, getBitrate, getCodec, getDimension, getFilename, getFilesize, getInfo, getMimeType, getProvider, getSource, getState, getURL, isMain, toString |
MarkupURLComposer
public MarkupURLComposer()
getTemplate
protected MMObjectNode getTemplate()
- Typical for a 'MarkupURLComposer' is that it should have a
'template'. It could have been called a 'TemplateURLComposer',
but that sounds to general..
canCompose
public boolean canCompose()
- This composer can only do something if it has a template. The
URLComposerFactory arranges this, but if somewhy it doesn't, it still works.
More importantly, it could also do checks to link 'markup
language type' to source format type. Currently is checked
that the source-format must be Real, if the templates language
is SMIL (this is perhaps too limited).
- Overrides:
canCompose in class URLComposer
getURLBuffer
protected StringBuilder getURLBuffer()
- Description copied from class:
URLComposer
- Extension will normally create URL's differently. They override this function.
- Overrides:
getURLBuffer in class URLComposer
getGUIIndicator
public String getGUIIndicator(Map<String,Locale> options)
- Overrides:
getGUIIndicator in class URLComposer
getDescription
public String getDescription(Map<String,Locale> options)
- Overrides:
getDescription in class URLComposer
getFormat
public Format getFormat()
- Depends on mimetype of the template to return the format of this urlcomposer.
- Overrides:
getFormat in class URLComposer
MMBase 2.0-SNAPSHOT - null