public abstract class SetLocaleSupport
extends javax.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 javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspExceptionpublic void release()
release in interface javax.servlet.jsp.tagext.Tagrelease in class javax.servlet.jsp.tagext.TagSupportpublic 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 © 2017 JBoss, a division of Red Hat, Inc.. All Rights Reserved.