public abstract class SetLocaleSupport extends TagSupport
Modifier and Type | Field and Description |
---|---|
protected Object |
value |
protected String |
variant |
id, pageContext
EVAL_BODY_AGAIN
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
Constructor and Description |
---|
SetLocaleSupport() |
Modifier and Type | Method and Description |
---|---|
int |
doEndTag()
Default processing of the end tag returning EVAL_PAGE.
|
static Locale |
parseLocale(String locale)
See parseLocale(String, String) for details.
|
static Locale |
parseLocale(String locale,
String variant)
Parses the given locale string into its language and (optionally)
country components, and returns the corresponding
java.util.Locale object.
|
void |
release()
Release state.
|
void |
setScope(String scope) |
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
public void setScope(String scope)
public int doEndTag() throws JspException
TagSupport
doEndTag
in interface Tag
doEndTag
in class TagSupport
JspException
- if an error occurs while processing this tagTag.doEndTag()
public void release()
TagSupport
release
in interface Tag
release
in class TagSupport
Tag.release()
public static Locale parseLocale(String locale)
public static Locale parseLocale(String locale, String variant)
locale
- the locale string to parsevariant
- the variantIllegalArgumentException
- if the given locale does not have a
language component or has an empty country componentCopyright © 2012 JBoss by Red Hat. All Rights Reserved.