public abstract class SetLocaleSupport
extends jakarta.servlet.jsp.tagext.TagSupport
Modifier and Type | Field and Description |
---|---|
protected Object |
value |
protected String |
variant |
Constructor and Description |
---|
SetLocaleSupport() |
Modifier and Type | Method and Description |
---|---|
int |
doEndTag() |
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() |
void |
setScope(String scope) |
public void setScope(String scope)
public int doEndTag() throws jakarta.servlet.jsp.JspException
doEndTag
in interface jakarta.servlet.jsp.tagext.Tag
doEndTag
in class jakarta.servlet.jsp.tagext.TagSupport
jakarta.servlet.jsp.JspException
public void release()
release
in interface jakarta.servlet.jsp.tagext.Tag
release
in class jakarta.servlet.jsp.tagext.TagSupport
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 © 2019,2020 Eclipse Foundation. All rights reserved.