org.mmbase.applications.media.urlcomposers
Class MarkupURLComposer

java.lang.Object
  extended by org.mmbase.applications.media.urlcomposers.URLComposer
      extended by org.mmbase.applications.media.urlcomposers.FragmentURLComposer
          extended by 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)

Field Summary
 
Fields inherited from class org.mmbase.applications.media.urlcomposers.FragmentURLComposer
fragment
 
Fields inherited from class org.mmbase.applications.media.urlcomposers.URLComposer
info, preference, provider, source
 
Constructor Summary
MarkupURLComposer()
           
 
Method Summary
 boolean canCompose()
          This composer can only do something if it has a template.
 String getDescription(Map<String,Locale> options)
           
 Format getFormat()
          Depends on mimetype of the template to return the format of this urlcomposer.
 String getGUIIndicator(Map<String,Locale> options)
           
protected  MMObjectNode getTemplate()
          Typical for a 'MarkupURLComposer' is that it should have a 'template'.
protected  StringBuilder getURLBuffer()
          Extension will normally create URL's differently.
 
Methods inherited from class org.mmbase.applications.media.urlcomposers.FragmentURLComposer
equals, getFragment, hashCode, init, isAvailable
 
Methods inherited from class org.mmbase.applications.media.urlcomposers.URLComposer
getAcodec, getBitrate, getCodec, getDimension, getFilename, getFilesize, getInfo, getMimeType, getProvider, getSource, getState, getURL, isMain, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MarkupURLComposer

public MarkupURLComposer()
Method Detail

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