org.mmbase.applications.media.urlcomposers
Class FragmentURLComposer

java.lang.Object
  extended by org.mmbase.applications.media.urlcomposers.URLComposer
      extended by org.mmbase.applications.media.urlcomposers.FragmentURLComposer
Direct Known Subclasses:
ImagesURLComposer, MarkupURLComposer, RamURLComposer, RealURLComposer

public class FragmentURLComposer
extends URLComposer

A Fragment URLComposer is an URLComposer which can also use information about the Fragment in the URL. Generally this means that it can represent a fragments 'completely' so, with information about start and stop times.

Version:
$Id: FragmentURLComposer.java 36760 2009-07-09 15:38:01Z michiel $
Author:
Michiel Meeuwissen, Rob Vermeulen (VPRO)

Field Summary
protected  MMObjectNode fragment
           
 
Fields inherited from class org.mmbase.applications.media.urlcomposers.URLComposer
info, preference, provider, source
 
Constructor Summary
FragmentURLComposer()
           
 
Method Summary
 boolean equals(Object o)
           
 MMObjectNode getFragment()
           
 int hashCode()
           
 void init(MMObjectNode provider, MMObjectNode source, MMObjectNode fragment, Map<String,Object> info, Set<MMObjectNode> cacheExpireObjects)
           
 boolean isAvailable()
          Wether the URL which will be produced by this composer is actually already useable.
 
Methods inherited from class org.mmbase.applications.media.urlcomposers.URLComposer
canCompose, getAcodec, getBitrate, getCodec, getDescription, getDimension, getFilename, getFilesize, getFormat, getGUIIndicator, getInfo, getMimeType, getProvider, getSource, getState, getURL, getURLBuffer, isMain, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

fragment

protected MMObjectNode fragment
Constructor Detail

FragmentURLComposer

public FragmentURLComposer()
Method Detail

init

public void init(MMObjectNode provider,
                 MMObjectNode source,
                 MMObjectNode fragment,
                 Map<String,Object> info,
                 Set<MMObjectNode> cacheExpireObjects)
Overrides:
init in class URLComposer

getFragment

public MMObjectNode getFragment()

isAvailable

public boolean isAvailable()
Description copied from class: URLComposer
Wether the URL which will be produced by this composer is actually already useable. This means that the provider must be 'on', and the source must be either an original (State.SOURCE), or its a generated source and its generation is done.

Overrides:
isAvailable in class URLComposer

equals

public boolean equals(Object o)
Overrides:
equals in class URLComposer
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Overrides:
hashCode in class URLComposer
See Also:
Object.hashCode()


MMBase 2.0-SNAPSHOT - null