|
||||||||||
| 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 Map |
info
|
protected MMObjectNode |
provider
|
protected MMObjectNode |
source
|
| Constructor Summary | |
URLComposer()
|
|
| Method Summary | |
boolean |
canCompose()
Returns true. |
boolean |
equals(Object o)
|
String |
getDescription(Map options)
|
Format |
getFormat()
The format of the produced URL. |
String |
getGUIIndicator(Map options)
|
Map |
getInfo()
|
String |
getMimeType()
The mime-type of the produced URL. |
MMObjectNode |
getProvider()
|
MMObjectNode |
getSource()
|
String |
getURL()
Returns the URL as a String. |
protected StringBuffer |
getURLBuffer()
Extension will normally create URL's differently. |
int |
hashCode()
|
void |
init(MMObjectNode provider,
MMObjectNode source,
MMObjectNode fragment,
Map info,
Set cacheExpireObjects)
|
boolean |
isAvailable()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected MMObjectNode source
protected MMObjectNode provider
protected Map info
| Constructor Detail |
public URLComposer()
| Method Detail |
public void init(MMObjectNode provider,
MMObjectNode source,
MMObjectNode fragment,
Map info,
Set cacheExpireObjects)
public MMObjectNode getSource()
public MMObjectNode getProvider()
public Map getInfo()
public Format getFormat()
public String getMimeType()
public String getGUIIndicator(Map options)
public String getDescription(Map options)
public boolean canCompose()
protected StringBuffer getURLBuffer()
public final String getURL()
public boolean isAvailable()
public String toString()
public boolean equals(Object o)
Object.equals(java.lang.Object)public int hashCode()
Object.hashCode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||