public class URLComposer extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Object> |
info |
protected int |
preference |
protected MMObjectNode |
provider |
protected MMObjectNode |
source |
| Constructor and Description |
|---|
URLComposer() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canCompose()
Returns true.
|
boolean |
equals(Object o) |
Codec |
getAcodec()
Audio codec if its field is present, returns 'UNKNOWN' (-1) if no such field or codec is
unknown.
|
int |
getBitrate() |
Codec |
getCodec() |
String |
getDescription(Map<String,Locale> options) |
Dimension |
getDimension() |
String |
getFilename()
Returns the 'short' url (typically the filename) for display purposes,
just the source field value url.
|
int |
getFilesize() |
Format |
getFormat()
The format of the produced URL.
|
String |
getGUIIndicator(Map<String,Locale> options) |
Map<String,Object> |
getInfo()
An auxiliary map.
|
MimeType |
getMimeType()
The mime-type of the produced URL.
|
MMObjectNode |
getProvider() |
MMObjectNode |
getSource() |
State |
getState() |
String |
getURL()
Returns the URL as a String.
|
protected StringBuilder |
getURLBuffer()
Extension will normally create URL's differently.
|
int |
hashCode() |
void |
init(MMObjectNode provider,
MMObjectNode source,
MMObjectNode fragment,
Map<String,Object> info,
Set<MMObjectNode> cacheExpireObjects) |
boolean |
isAvailable()
Whether the URL which will be produced by this composer is actually already usable.
|
boolean |
isMain() |
String |
toString() |
protected MMObjectNode source
protected MMObjectNode provider
protected int preference
public void init(MMObjectNode provider, MMObjectNode source, MMObjectNode fragment, Map<String,Object> info, Set<MMObjectNode> cacheExpireObjects)
public MMObjectNode getSource()
public MMObjectNode getProvider()
public Map<String,Object> getInfo()
Labeler does only that) for use by the subsequent filters in the chain.
The initial contents of this map is given given by the client. Using the functions on the builders, there are only a few predefined keys (the arguments of the function).public Format getFormat()
public Codec getCodec()
public Codec getAcodec()
public int getBitrate()
public MimeType getMimeType()
public Dimension getDimension()
public int getFilesize()
public boolean canCompose()
protected StringBuilder getURLBuffer()
public final String getURL()
public final String getFilename()
public boolean isAvailable()
State.SOURCE), or its a generated source and its generation is done.public boolean isMain()
public State getState()
public boolean equals(Object o)
equals in class ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class ObjectObject.hashCode()MMBase 1.9-SNAPSHOT - ${javadoctimestamp}