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.Tag
doEndTag
in class javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.JspException
public void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class javax.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 © 2013 JBoss by Red Hat. All Rights Reserved.