Class SetLocaleSupport

  • All Implemented Interfaces:
    java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag
    Direct Known Subclasses:
    SetLocaleTag, SetLocaleTag, SetLocaleTag

    public abstract class SetLocaleSupport
    extends javax.servlet.jsp.tagext.TagSupport
    Support for tag handlers for <setLocale>, the locale setting tag in JSTL 1.0.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) static java.util.Locale[] availableFormattingLocales
      Setup the available formatting locales that will be used by getFormattingLocale(PageContext).
      private int scope  
      protected java.lang.Object value  
      protected java.lang.String variant  
      • Fields inherited from class javax.servlet.jsp.tagext.TagSupport

        id, pageContext
      • Fields inherited from interface javax.servlet.jsp.tagext.IterationTag

        EVAL_BODY_AGAIN
      • Fields inherited from interface javax.servlet.jsp.tagext.Tag

        EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int doEndTag()  
      private static java.util.Locale findFormattingMatch​(java.util.Locale pref, java.util.Locale[] avail)  
      private static java.util.Locale findFormattingMatch​(javax.servlet.jsp.PageContext pageContext, java.util.Locale[] avail)  
      (package private) static java.util.Locale getFormattingLocale​(javax.servlet.jsp.PageContext pc)  
      (package private) static java.util.Locale getFormattingLocale​(javax.servlet.jsp.PageContext pc, javax.servlet.jsp.tagext.Tag fromTag, boolean format, java.util.Locale[] avail)  
      (package private) static java.util.Locale getLocale​(javax.servlet.jsp.PageContext pageContext, java.lang.String name)  
      private void init()  
      void release()  
      (package private) static void setResponseLocale​(javax.servlet.jsp.PageContext pc, java.util.Locale locale)  
      void setScope​(java.lang.String scope)  
      • Methods inherited from class javax.servlet.jsp.tagext.TagSupport

        doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • value

        protected java.lang.Object value
      • variant

        protected java.lang.String variant
      • scope

        private int scope
      • availableFormattingLocales

        static java.util.Locale[] availableFormattingLocales
        Setup the available formatting locales that will be used by getFormattingLocale(PageContext).
    • Constructor Detail

      • SetLocaleSupport

        public SetLocaleSupport()
    • Method Detail

      • init

        private void init()
      • setScope

        public void setScope​(java.lang.String scope)
      • doEndTag

        public int doEndTag()
                     throws javax.servlet.jsp.JspException
        Specified by:
        doEndTag in interface javax.servlet.jsp.tagext.Tag
        Overrides:
        doEndTag in class javax.servlet.jsp.tagext.TagSupport
        Throws:
        javax.servlet.jsp.JspException
      • release

        public void release()
        Specified by:
        release in interface javax.servlet.jsp.tagext.Tag
        Overrides:
        release in class javax.servlet.jsp.tagext.TagSupport
      • setResponseLocale

        static void setResponseLocale​(javax.servlet.jsp.PageContext pc,
                                      java.util.Locale locale)
      • getFormattingLocale

        static java.util.Locale getFormattingLocale​(javax.servlet.jsp.PageContext pc,
                                                    javax.servlet.jsp.tagext.Tag fromTag,
                                                    boolean format,
                                                    java.util.Locale[] avail)
      • getFormattingLocale

        static java.util.Locale getFormattingLocale​(javax.servlet.jsp.PageContext pc)
      • getLocale

        static java.util.Locale getLocale​(javax.servlet.jsp.PageContext pageContext,
                                          java.lang.String name)
      • findFormattingMatch

        private static java.util.Locale findFormattingMatch​(javax.servlet.jsp.PageContext pageContext,
                                                            java.util.Locale[] avail)
      • findFormattingMatch

        private static java.util.Locale findFormattingMatch​(java.util.Locale pref,
                                                            java.util.Locale[] avail)