org.mmbase.bridge.jsp.taglib
Class CloudReferrerTag

org.mmbase.bridge.jsp.taglib.ContextReferrerTag
  |
  +--org.mmbase.bridge.jsp.taglib.CloudReferrerTag
Direct Known Subclasses:
CommitTag, InfoTag, MayCreateTag, NodeReferrerTag, TransactionTag, UrlTag

public abstract class CloudReferrerTag
extends ContextReferrerTag

Tags which are meant to live as a child of the CloudTag, could extend this class.

Author:
Michiel Meeuwissen

Fields inherited from class org.mmbase.bridge.jsp.taglib.ContextReferrerTag
contextId, PAGE_CATEGORY, pageContextTag, referid
 
Constructor Summary
CloudReferrerTag()
           
 
Method Summary
protected  CloudProvider findCloudProvider()
          This method tries to find an ancestor object of type CloudTag in that case the first node provider found will be taken.
protected  Cloud getCloud()
          Find the CloudProvider and return its cloud variable in one step.
protected  CloudContext getCloudContext()
           
 Node getNode(java.lang.String key)
          Gets a node from the context.
 void setCloud(java.lang.String c)
          If there are more clouds to choose from, you can have a 'cloud' attribute in your tag, in wich you can indicate the id of the cloud you mean.
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.ContextReferrerTag
findParentTag, findParentTag, getAttributeBoolean, getAttributeInteger, getAttributeInteger, getAttributeValue, getContextTag, getObject, getReferid, getString, release, setContext, setPageContext, setReferid
 

Constructor Detail

CloudReferrerTag

public CloudReferrerTag()
Method Detail

setCloud

public void setCloud(java.lang.String c)
If there are more clouds to choose from, you can have a 'cloud' attribute in your tag, in wich you can indicate the id of the cloud you mean.

findCloudProvider

protected CloudProvider findCloudProvider()
                                   throws javax.servlet.jsp.JspTagException
This method tries to find an ancestor object of type CloudTag in that case the first node provider found will be taken. REMARK: the CloudTag does not yet have 'id', i think. We dont' have multiple cloud support yet.
Returns:
the CloudTag if found, else an exception.

getCloud

protected Cloud getCloud()
                  throws javax.servlet.jsp.JspTagException
Find the CloudProvider and return its cloud variable in one step. And the result of findCloudProvider is stored, so invoking this function more often is better then invoking findCloudProvider every time.
Returns:
a Cloud

getCloudContext

protected CloudContext getCloudContext()
Returns:
the cloud context

getNode

public Node getNode(java.lang.String key)
             throws javax.servlet.jsp.JspTagException
Gets a node from the context.


MMBase 2002