org.mmbase.bridge.jsp.taglib
Class CloudReferrerTag

java.lang.Object
  |
  +--javax.servlet.jsp.tagext.TagSupport
        |
        +--javax.servlet.jsp.tagext.BodyTagSupport
              |
              +--org.mmbase.bridge.jsp.taglib.ContextReferrerTag
                    |
                    +--org.mmbase.bridge.jsp.taglib.CloudReferrerTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
Direct Known Subclasses:
AbstractNodeProviderTag, CommitTag, InfoTag, NodeFieldTag, NodeReferrerTag, TransactionTag

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
See Also:
Serialized Form

Fields inherited from class org.mmbase.bridge.jsp.taglib.ContextReferrerTag
pageContextTag, referid
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_TAG
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
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  CloudContext getCloudContext()
           
protected  Cloud getCloudProviderVar()
          Find the CloudProvider and return its cloud variable in one step.
 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, getAttributeValue, getContextTag, getContextTag, getReferid, getReferIdValue, release, setContext, setPageContext, setReferid, stringSplitter, stringSplitter
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doEndTag, doInitBody, doStartTag, getBodyContent, getPreviousOut, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setParent
 

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.

getCloudProviderVar

protected Cloud getCloudProviderVar()
                             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


MMBase 2001