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:
- Serializable, BodyTag, IterationTag, JspTag, Tag, TryCatchFinally
- Direct Known Subclasses:
- CloudInfoTag, ComponentTag, DataTypeTag, EditTag, FormatterTag, HasNodeManagerTag, HasNodeTag, HasRankTag, HasRelationManagerTag, HasSettingTag, InfoTag, ListContainerTag, LocaleTag, MayCreateTag, MayReadTag, MayTag, NodeReferrerTag, PropertyTag, QueryAddConstraintTag, QueryAgeConstraintTag, QueryAliasConstraintTag, QueryCompositeConstraintTag, QueryConstraintTag, QueryDistinctTag, QueryMaxNumberTag, QueryOffsetTag, QuerySortOrderTag, QueryTypeConstraintTag, SetPropertyTag, SettingTag, TransactionReferrerTag, TransactionTag, TreeHasPageTag, 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 41042 2010-02-15 22:48:06Z michiel $
- Author:
- Michiel Meeuwissen
- See Also:
- Serialized Form
| Methods inherited from class org.mmbase.bridge.jsp.taglib.ContextReferrerTag |
appendMoreParameters, doCatch, doEndTag, doFinally, findLoopOrQuery, findParentTag, findParentTag, findWriter, findWriter, getAttribute, getAttribute, getAttributeBoolean, getAttributeInteger, getAttributeInteger, getAttributeValue, getContentTag, getContextProvider, getContextTag, getCurrentBlock, getDefaultLocale, getEscapedValue, getFormTag, getId, getLocaleFromContext, getObject, getObjectConditional, getPageContext, getPageContextTag, getQuery, getReferid, getString, getTaglibVersion, getThreadPageContext, getTimeZone, getWriterValue, haveBody, release, setContext, setEscape, setId, setJspvar, setListdelimiter, setPageContext, setPageContextOnly, setReferid, setVartype, setWrite, setWriter |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cloudId
protected Attribute cloudId
CloudReferrerTag
public CloudReferrerTag()
setCloud
public void setCloud(String c)
throws 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:
JspTagException
findCloudProvider
protected CloudProvider findCloudProvider()
throws JspTagException
- This method tries to find an ancestor object of type CloudProvider.
- Returns:
- the CloudTag if found, else an exception.
- Throws:
JspTagException
findCloudProvider
public CloudProvider findCloudProvider(boolean throwexception)
throws JspTagException
- This method tries to find an ancestor object of type CloudProvider.
- Returns:
- the CloudProvider or null.
- Throws:
JspTagException
getCloudVar
public Cloud getCloudVar()
throws 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:
JspTagException
getCloudContext
protected CloudContext getCloudContext()
- Returns:
- the cloud context
getNode
protected Node getNode(String key)
throws JspTagException
- Throws:
JspTagException
getNodeOrNull
protected Node getNodeOrNull(String key)
throws JspTagException
- Gets a node from the context.
- Throws:
JspTagException
fillStandardParameters
public void fillStandardParameters(Parameters p)
throws JspTagException
- Description copied from class:
ContextReferrerTag
- Fill standard parameters like request, response, language and locale
- Overrides:
fillStandardParameters in class ContextReferrerTag
- Parameters:
p - the parameters
- Throws:
JspTagException - when parent tag is not found
getLocale
public Locale getLocale()
throws JspTagException
- Description copied from class:
ContextReferrerTag
- Get the locale which is defined by surrounding tags or the cloud
- Overrides:
getLocale in class ContextReferrerTag
- Returns:
- a locale when defined or otherwise the mmbase locale.
- Throws:
JspTagException - when parent tag is not found- Since:
- MMBase-1.8
MMBase 2.0-SNAPSHOT - null