|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.applications.media.urlcomposers.URLComposerFactory
public class URLComposerFactory
The URLComposerFactory contains the code to decide which kind of URLComposer is instatiated. This is a default implementation, which can be extended for your situation (The class can be configured in the mediaproviders builder xml) This particular implementation provides the possibility to relate formats to URLComposer classes. It can also relate a format/protocol combination to a URLComposer class.
| Field Summary | |
|---|---|
static String |
CONFIG_FILE
|
| Method Summary | |
|---|---|
protected boolean |
addURLComposer(URLComposer uc,
List<URLComposer> urls)
Add urlcomposer to list of urlcomposers if that is possible. |
List<URLComposer> |
createURLComposers(MMObjectNode provider,
MMObjectNode source,
MMObjectNode fragment,
Map<String,Object> info,
List<URLComposer> urls,
Set<MMObjectNode> cacheExpireObjects)
When the provider/source/fragment combo is determined they can be fed into this function of the urlcomposerfactory, which will then produce zero or more urlcomposers. |
static URLComposerFactory |
getInstance()
Returns the one instance. |
protected List<MMObjectNode> |
getTemplates(MMObjectNode fragment)
You can relate template objects to media fragments. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CONFIG_FILE
| Method Detail |
|---|
public static URLComposerFactory getInstance()
protected List<MMObjectNode> getTemplates(MMObjectNode fragment)
protected boolean addURLComposer(URLComposer uc,
List<URLComposer> urls)
public List<URLComposer> createURLComposers(MMObjectNode provider,
MMObjectNode source,
MMObjectNode fragment,
Map<String,Object> info,
List<URLComposer> urls,
Set<MMObjectNode> cacheExpireObjects)
provider - MMObjectNodesource - MMObjectNodeinfo - A Map with additional optionsurls - A List with URLComposer to which the new ones must be added, or null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||