org.mmbase.applications.media.urlcomposers
Class MarkupURLComposer

java.lang.Object
  extended byorg.mmbase.applications.media.urlcomposers.URLComposer
      extended byorg.mmbase.applications.media.urlcomposers.FragmentURLComposer
          extended byorg.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, provider, source
 
Constructor Summary
MarkupURLComposer()
           
 
Method Summary
 boolean canCompose()
          This composer can only do something if it has a template.
 java.lang.String getDescription(java.util.Map options)
           
 Format getFormat()
          Depends on mimetype of the template to return the format of this urlcomposer.
 java.lang.String getGUIIndicator(java.util.Map options)
           
protected  MMObjectNode getTemplate()
          Typical for a 'MarkupURLComposer' is that it should have a 'template'.
protected  java.lang.StringBuffer getURLBuffer()
          Extension will normally create URL's differently.
 
Methods inherited from class org.mmbase.applications.media.urlcomposers.FragmentURLComposer
equals, getFragment, init, isAvailable
 
Methods inherited from class org.mmbase.applications.media.urlcomposers.URLComposer
getInfo, getProvider, getSource, getURL, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, 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 java.lang.StringBuffer getURLBuffer()
Description copied from class: URLComposer
Extension will normally create URL's differently. They override this function.

Overrides:
getURLBuffer in class URLComposer

getGUIIndicator

public java.lang.String getGUIIndicator(java.util.Map options)
Overrides:
getGUIIndicator in class URLComposer

getDescription

public java.lang.String getDescription(java.util.Map 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 build 1.7.1.20041002