org.mmbase.bridge.jsp.taglib
Class CloudTag

java.lang.Object
  |
  +--javax.servlet.jsp.tagext.TagSupport
        |
        +--javax.servlet.jsp.tagext.BodyTagSupport
              |
              +--org.mmbase.bridge.jsp.taglib.ContextReferrerTag
                    |
                    +--org.mmbase.bridge.jsp.taglib.CloudTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, CloudProvider, javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag, TagIdentifier

public class CloudTag
extends ContextReferrerTag
implements CloudProvider

Creates a cloud object (pulling it from if session necessary). While creating a cloud object one also has to authenticate itself, so this functionality is also in this tag.

Author:
Pierre van Rooden, Michiel Meeuwissen
See Also:
Serialized Form

Fields inherited from class org.mmbase.bridge.jsp.taglib.ContextReferrerTag
contextId, PAGE_CATEGORY, pageContextTag, referid, writerid
 
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_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
CloudTag()
           
 
Method Summary
 int doAfterBody()
           
 int doStartTag()
          Sets the cloud variable considering all requirements.
 Cloud getCloudVar()
           
 CloudContext getDefaultCloudContext()
           
 java.lang.String getSessionName()
          Return the name of session variable in which the cloud is stored.
 void setAuthenticate(java.lang.String authenticate)
           
 void setCloudVar(Cloud c)
           
 void setJspvar(java.lang.String jv)
           
 void setLoginpage(java.lang.String loginpage)
           
 void setLogon(java.lang.String l)
           
 void setMethod(java.lang.String mm)
           
 void setName(java.lang.String name)
           
 void setPageContext(javax.servlet.jsp.PageContext pc)
          request and response can be determined once a page..
 void setPwd(java.lang.String pwd)
           
 void setRank(java.lang.String r)
           
 void setSessionname(java.lang.String s)
           
 void setUri(java.lang.String uri)
           
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.ContextReferrerTag
findParentTag, findParentTag, findWriter, findWriter, getAttributeBoolean, getAttributeInteger, getAttributeInteger, getAttributeValue, getContextTag, getObject, getReferid, getString, release, setContext, setReferid, setWriter
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doEndTag, doInitBody, 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 org.mmbase.bridge.jsp.taglib.TagIdentifier
getId
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setParent
 

Constructor Detail

CloudTag

public CloudTag()
Method Detail

getDefaultCloudContext

public CloudContext getDefaultCloudContext()
Returns:
the default cloud context

setUri

public void setUri(java.lang.String uri)
            throws javax.servlet.jsp.JspTagException

setName

public void setName(java.lang.String name)
             throws javax.servlet.jsp.JspTagException

setLogon

public void setLogon(java.lang.String l)
              throws javax.servlet.jsp.JspTagException

setRank

public void setRank(java.lang.String r)
             throws javax.servlet.jsp.JspTagException

setPwd

public void setPwd(java.lang.String pwd)
            throws javax.servlet.jsp.JspTagException

setJspvar

public void setJspvar(java.lang.String jv)

setAuthenticate

public void setAuthenticate(java.lang.String authenticate)

setMethod

public void setMethod(java.lang.String mm)
               throws javax.servlet.jsp.JspTagException

getCloudVar

public Cloud getCloudVar()
Specified by:
getCloudVar in interface CloudProvider
Following copied from interface: org.mmbase.bridge.jsp.taglib.CloudProvider
Returns:
the cloud contained in the tag

setCloudVar

public void setCloudVar(Cloud c)

setSessionname

public void setSessionname(java.lang.String s)
                    throws javax.servlet.jsp.JspTagException

setLoginpage

public void setLoginpage(java.lang.String loginpage)
                  throws javax.servlet.jsp.JspTagException

getSessionName

public java.lang.String getSessionName()
Return the name of session variable in which the cloud is stored. This is on default "cloud_mmbase" but this can be influenced with the sessionname attribute. If tho pages have different sessionnames for the cloud, they can be logged in simultaniously with different clouds, but in the same session.

setPageContext

public void setPageContext(javax.servlet.jsp.PageContext pc)
request and response can be determined once a page..
Overrides:
setPageContext in class ContextReferrerTag

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspTagException
Sets the cloud variable considering all requirements. SKIP_BODY if this can not be done.
Overrides:
doStartTag in class javax.servlet.jsp.tagext.BodyTagSupport

doAfterBody

public int doAfterBody()
                throws javax.servlet.jsp.JspTagException
Overrides:
doAfterBody in class javax.servlet.jsp.tagext.BodyTagSupport


MMBase build 1.6.5.20030923