org.mmbase.bridge.jsp.taglib
Class CloudReferrerTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended byorg.mmbase.bridge.jsp.taglib.ContextReferrerTag
              extended byorg.mmbase.bridge.jsp.taglib.CloudReferrerTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
Direct Known Subclasses:
CommitTag, InfoTag, ListContainerTag, MayCreateTag, NodeReferrerTag, QueryAgeConstraintTag, QueryAliasConstraintTag, QueryCompositeConstraintTag, QueryConstraintTag, QueryDistinctTag, QueryMaxNumberTag, QueryOffsetTag, QuerySortOrderTag, TransactionTag, UrlTag

public abstract class CloudReferrerTag
extends ContextReferrerTag

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

Version:
$Id: CloudReferrerTag.java,v 1.21.2.2 2004/07/26 20:12:16 nico Exp $
Author:
Michiel Meeuwissen
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.mmbase.bridge.jsp.taglib.ContextReferrerTag
contextId, EVAL_BODY, helper, id, pageContextTag, referid, writerid
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
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 CloudProvider.
 CloudProvider findCloudProvider(boolean throwexception)
          This method tries to find an ancestor object of type CloudProvider.
 Cloud getCloud()
          Deprecated. (2004-05-08) use getCloudWeblogic, because this breaks the bean specs
protected  CloudContext getCloudContext()
           
 Cloud getCloudVar()
          Find the CloudProvider and return its cloud variable in one step.
protected  Node getNode(java.lang.String key)
           
protected  Node getNodeOrNull(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
doEndTag, findParentTag, findParentTag, findParentTag, findParentTag, findWriter, findWriter, getAttribute, getAttributeBoolean, getAttributeInteger, getAttributeInteger, getAttributeValue, getContentTag, getContextProvider, getContextTag, getId, getLocale, getObject, getPageContext, getReferid, getString, getWriterValue, haveBody, release, setContext, setEscape, setId, setJspvar, setPageContext, setReferid, setVartype, setWrite, setWriter
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, doStartTag, getBodyContent, getPreviousOut, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getParent, getValue, getValues, removeValue, 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)
              throws javax.servlet.jsp.JspTagException
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.

Throws:
javax.servlet.jsp.JspTagException

findCloudProvider

protected CloudProvider findCloudProvider()
                                   throws javax.servlet.jsp.JspTagException
This method tries to find an ancestor object of type CloudProvider.

Returns:
the CloudTag if found, else an exception.
Throws:
javax.servlet.jsp.JspTagException

findCloudProvider

public CloudProvider findCloudProvider(boolean throwexception)
                                throws javax.servlet.jsp.JspTagException
This method tries to find an ancestor object of type CloudProvider.

Returns:
the CloudProvider or null.
Throws:
javax.servlet.jsp.JspTagException

getCloud

public Cloud getCloud()
               throws javax.servlet.jsp.JspTagException
Deprecated. (2004-05-08) use getCloudWeblogic, because this breaks the bean specs

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
Throws:
javax.servlet.jsp.JspTagException

getCloudVar

public Cloud getCloudVar()
                  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
Throws:
javax.servlet.jsp.JspTagException

getCloudContext

protected CloudContext getCloudContext()
Returns:
the cloud context

getNode

protected Node getNode(java.lang.String key)
                throws javax.servlet.jsp.JspTagException
Throws:
javax.servlet.jsp.JspTagException

getNodeOrNull

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

Throws:
javax.servlet.jsp.JspTagException


MMBase build 1.7.1.20041002