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:
- BodyTag, CloudProvider, IterationTag, ParamHandler, Serializable, Tag, TagIdentifier
- public class CloudTag
- extends ContextReferrerTag
- implements CloudProvider, ParamHandler
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.
- Version:
- $Id: CloudTag.java,v 1.140 2006/07/15 19:12:46 michiel Exp $
- Author:
- Pierre van Rooden, Michiel Meeuwissen, Vincent van der Locht
- See Also:
- Serialized Form
| Methods inherited from class org.mmbase.bridge.jsp.taglib.ContextReferrerTag |
fillStandardParameters, findLoopOrQuery, findParentTag, findParentTag, findParentTag, findParentTag, findWriter, findWriter, getAttribute, getAttributeBoolean, getAttributeInteger, getAttributeInteger, getAttributeValue, getContentTag, getContextProvider, getContextTag, getDefaultLocale, getEscapedValue, getId, getLocale, getObject, getObjectConditional, getPageContext, getPageContextTag, getReferid, getString, getTaglibVersion, getTimeZone, getWriterValue, haveBody, release, setContext, setEscape, setId, setListdelimiter, setReferid, setVartype, setWrite, setWriter |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CloudTag
public CloudTag()
getDefaultCloudContext
public CloudContext getDefaultCloudContext()
throws JspTagException
- Returns:
- the default cloud context
- Throws:
JspTagException
setUri
public void setUri(String uri)
throws JspTagException
- Throws:
JspTagException
setName
public void setName(String name)
throws JspTagException
- Throws:
JspTagException
getName
protected String getName()
throws JspTagException
- Throws:
JspTagException
setLogon
public void setLogon(String l)
throws JspTagException
- Throws:
JspTagException
setPwd
public void setPwd(String pwd)
throws JspTagException
- Throws:
JspTagException
setUsername
public void setUsername(String l)
throws JspTagException
- Synonym for setLogon. Don't mix.
- Throws:
JspTagException
setPassword
public void setPassword(String pwd)
throws JspTagException
- Synonym for setPwd. Don't mix.
- Throws:
JspTagException
setRank
public void setRank(String r)
throws JspTagException
- Throws:
JspTagException
getRank
protected Rank getRank()
throws JspTagException
- Gives the configured rank as a Rank object
- Throws:
JspTagException
setOnfail
public void setOnfail(String of)
throws JspTagException
- Throws:
JspTagException- Since:
- MMBase-1.7
addParameter
public void addParameter(String key,
Object value)
- Specified by:
addParameter in interface ParamHandler
setJspvar
public void setJspvar(String jv)
- Overrides:
setJspvar in class ContextReferrerTag
setAuthenticate
public void setAuthenticate(String authenticate)
throws JspTagException
- Throws:
JspTagException
getAuthenticate
protected String getAuthenticate()
throws JspTagException
- Throws:
JspTagException
setMethod
public void setMethod(String mm)
throws JspTagException
- Throws:
JspTagException
getMethod
protected int getMethod()
throws JspTagException
- Throws:
JspTagException
getMethodOrDefault
protected int getMethodOrDefault()
throws JspTagException
- Returns:
- The login-method, or METHOD_LOGINPAGE if loginpage was specified, or the default method of the authentication implemnetation if also that was not specified.
- Throws:
JspTagException- Since:
- MMBase-1.8
getCloudVar
public Cloud getCloudVar()
- Specified by:
getCloudVar in interface CloudProvider
- Returns:
- the cloud contained in the tag
setCloudVar
public void setCloudVar(Cloud c)
setSessionname
public void setSessionname(String s)
throws JspTagException
- Throws:
JspTagException
setLoginpage
public void setLoginpage(String loginpage)
throws JspTagException
- Throws:
JspTagException
getSessionName
public String getSessionName()
throws JspTagException
- Throws:
JspTagException
setPageContext
public void setPageContext(PageContext pc)
- request and response can be determined once a page..
- Specified by:
setPageContext in interface Tag- Overrides:
setPageContext in class ContextReferrerTag
doStartTag
public int doStartTag()
throws JspTagException
- Sets the cloud variable considering all requirements. SKIP_BODY if this can not be done.
- Specified by:
doStartTag in interface Tag
- Throws:
JspTagException
doEndTag
public int doEndTag()
throws JspTagException
- Specified by:
doEndTag in interface Tag- Overrides:
doEndTag in class ContextReferrerTag
- Throws:
JspTagException
doAfterBody
public int doAfterBody()
throws JspTagException
- Specified by:
doAfterBody in interface IterationTag
- Throws:
JspTagException
MMBase build 1.8.1.20060716