public class LocaleTag extends CloudReferrerTag
| Modifier and Type | Field and Description |
|---|---|
protected Cloud |
cloud |
static String |
KEY |
protected Locale |
locale |
protected Locale |
prevCloudLocale |
protected Locale |
prevJstlLocale |
static int |
SCOPE |
static String |
TZ_KEY |
protected Set<String> |
varyHeaders |
cloudIdcontextId, EVAL_BODY, helper, id, pageContextTag, referid, writerid| Constructor and Description |
|---|
LocaleTag() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addVary(String header) |
protected void |
determineFromCloudProvider() |
protected void |
determineLocale() |
protected void |
determineLocaleFromAttributes() |
int |
doAfterBody() |
int |
doEndTag() |
void |
doFinally() |
int |
doStartTag() |
Locale |
getLocale()
Child tags can call this function to obtain the Locale they must use.
|
void |
setCountry(String c) |
void |
setJspvar(String j) |
void |
setLanguage(String lang) |
void |
setTimezone(String t) |
void |
setVariant(String v) |
fillStandardParameters, findCloudProvider, findCloudProvider, getCloudContext, getCloudVar, getNode, getNodeOrNull, setCloudappendMoreParameters, 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, getTimer, getTimeZone, getWriterValue, haveBody, release, setContext, setEscape, setId, setListdelimiter, setPageContext, setPageContextOnly, setReferid, setVartype, setWrite, setWriterdoInitBody, getBodyContent, getPreviousOut, setBodyContentfindAncestorWithClass, getParent, getValue, getValues, removeValue, setParent, setValuepublic static final String KEY
public static final String TZ_KEY
public static final int SCOPE
protected Locale locale
protected Locale prevCloudLocale
protected Locale prevJstlLocale
protected Cloud cloud
public void setLanguage(String lang) throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagExceptionpublic void setCountry(String c) throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagExceptionpublic void setVariant(String v) throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagExceptionpublic void setTimezone(String t) throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagExceptionpublic Locale getLocale()
getLocale in class CloudReferrerTagpublic void setJspvar(String j)
setJspvar in class ContextReferrerTagpublic int doStartTag()
throws javax.servlet.jsp.JspTagException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.BodyTagSupportjavax.servlet.jsp.JspTagExceptionprotected void determineLocale()
throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagExceptionprotected void determineFromCloudProvider()
throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagExceptionprotected void addVary(String header)
protected void determineLocaleFromAttributes()
throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagExceptionpublic int doAfterBody()
throws javax.servlet.jsp.JspTagException
doAfterBody in interface javax.servlet.jsp.tagext.IterationTagdoAfterBody in class javax.servlet.jsp.tagext.BodyTagSupportjavax.servlet.jsp.JspTagExceptionpublic int doEndTag()
throws javax.servlet.jsp.JspTagException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class ContextReferrerTagjavax.servlet.jsp.JspTagExceptionpublic void doFinally()
doFinally in interface javax.servlet.jsp.tagext.TryCatchFinallydoFinally in class ContextReferrerTagMMBase 1.9-SNAPSHOT - ${javadoctimestamp}