|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mmbase.applications.media.urlcomposers.URLComposer
URLComposer is a wrapper/container class around an URL. It contains besides the URL some extra meta information about it, like the original source object of the resource it represents and if it is currently available or not. An URL can be unavailable because of two reasons: Because the provider is offline, or because the fragment where it belongs to is not valid (e.g. because of publishtimes) It is used by the Media builders to pass around information (mainly as entry in Lists)
| Field Summary | |
protected java.util.Map |
info
|
protected MMObjectNode |
provider
|
protected MMObjectNode |
source
|
| Constructor Summary | |
URLComposer()
|
|
| Method Summary | |
boolean |
canCompose()
Returns true. |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getDescription(java.util.Map options)
|
Format |
getFormat()
The format of the produced URL. |
java.lang.String |
getGUIIndicator(java.util.Map options)
|
java.util.Map |
getInfo()
|
MMObjectNode |
getProvider()
|
MMObjectNode |
getSource()
|
java.lang.String |
getURL()
Returns the URL as a String. |
protected java.lang.StringBuffer |
getURLBuffer()
Extension will normally create URL's differently. |
void |
init(MMObjectNode provider,
MMObjectNode source,
MMObjectNode fragment,
java.util.Map info,
java.util.Set cacheExpireObjects)
|
boolean |
isAvailable()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected MMObjectNode source
protected MMObjectNode provider
protected java.util.Map info
| Constructor Detail |
public URLComposer()
| Method Detail |
public void init(MMObjectNode provider,
MMObjectNode source,
MMObjectNode fragment,
java.util.Map info,
java.util.Set cacheExpireObjects)
public MMObjectNode getSource()
public MMObjectNode getProvider()
public java.util.Map getInfo()
public Format getFormat()
public java.lang.String getGUIIndicator(java.util.Map options)
public java.lang.String getDescription(java.util.Map options)
public boolean canCompose()
protected java.lang.StringBuffer getURLBuffer()
public final java.lang.String getURL()
public boolean isAvailable()
public java.lang.String toString()
public boolean equals(java.lang.Object o)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||