org.mmbase.bridge.jsp.taglib
Class LocaleTag
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
org.mmbase.bridge.jsp.taglib.LocaleTag
- All Implemented Interfaces:
- Serializable, BodyTag, IterationTag, JspTag, Tag, TryCatchFinally
- Direct Known Subclasses:
- ContentTag
public class LocaleTag
- extends CloudReferrerTag
Provides Locale (language, country) information to its body.
- Version:
- $Id: LocaleTag.java 35335 2009-05-21 08:14:41Z michiel $
- Author:
- Michiel Meeuwissen
- See Also:
- Serialized Form
| Methods inherited from class org.mmbase.bridge.jsp.taglib.ContextReferrerTag |
appendMoreParameters, doCatch, 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, 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 |
KEY
public static final String KEY
- See Also:
- Constant Field Values
TZ_KEY
public static final String TZ_KEY
- See Also:
- Constant Field Values
SCOPE
public static final int SCOPE
- See Also:
- Constant Field Values
locale
protected Locale locale
prevCloudLocale
protected Locale prevCloudLocale
prevJstlLocale
protected Locale prevJstlLocale
cloud
protected Cloud cloud
varyHeaders
protected Set<String> varyHeaders
LocaleTag
public LocaleTag()
setLanguage
public void setLanguage(String lang)
throws JspTagException
- Throws:
JspTagException
setCountry
public void setCountry(String c)
throws JspTagException
- Throws:
JspTagException
setVariant
public void setVariant(String v)
throws JspTagException
- Throws:
JspTagException
setTimezone
public void setTimezone(String t)
throws JspTagException
- Throws:
JspTagException- Since:
- MMBase-1.8.1
getLocale
public Locale getLocale()
- Child tags can call this function to obtain the Locale they must use.
- Overrides:
getLocale in class CloudReferrerTag
- Returns:
- a locale when defined or otherwise the mmbase locale.
setJspvar
public void setJspvar(String j)
- Overrides:
setJspvar in class ContextReferrerTag
doStartTag
public int doStartTag()
throws JspTagException
- Specified by:
doStartTag in interface Tag- Overrides:
doStartTag in class BodyTagSupport
- Throws:
JspTagException
determineLocale
protected void determineLocale()
throws JspTagException
- Throws:
JspTagException
determineFromCloudProvider
protected void determineFromCloudProvider()
throws JspTagException
- Throws:
JspTagException
addVary
protected void addVary(String header)
determineLocaleFromAttributes
protected void determineLocaleFromAttributes()
throws JspTagException
- Throws:
JspTagException
doAfterBody
public int doAfterBody()
throws JspTagException
- Specified by:
doAfterBody in interface IterationTag- Overrides:
doAfterBody in class BodyTagSupport
- Throws:
JspTagException
doEndTag
public int doEndTag()
throws JspTagException
- Specified by:
doEndTag in interface Tag- Overrides:
doEndTag in class ContextReferrerTag
- Throws:
JspTagException
doFinally
public void doFinally()
- Specified by:
doFinally in interface TryCatchFinally- Overrides:
doFinally in class ContextReferrerTag
MMBase 2.0-SNAPSHOT - null