Class Util
- java.lang.Object
-
- org.apache.taglibs.standard.tag.common.core.Util
-
public class Util extends java.lang.ObjectUtilities in support of tag-handler classes.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringAPPLICATIONprivate static java.lang.StringDEFAULTprivate static java.lang.StringFULLprivate static java.lang.StringLONGprivate static java.lang.StringMEDIUMprivate static java.lang.StringREQUESTprivate static java.lang.StringSESSIONprivate static java.lang.StringSHORT
-
Constructor Summary
Constructors Constructor Description Util()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetContentTypeAttribute(java.lang.String input, java.lang.String name)Get the value associated with a content-type attribute.static java.util.EnumerationgetRequestLocales(javax.servlet.http.HttpServletRequest request)HttpServletRequest.getLocales() returns the server's default locale if the request did not specify a preferred language.static intgetScope(java.lang.String scope)static intgetStyle(java.lang.String style, java.lang.String errCode)
-
-
-
Field Detail
-
REQUEST
private static final java.lang.String REQUEST
- See Also:
- Constant Field Values
-
SESSION
private static final java.lang.String SESSION
- See Also:
- Constant Field Values
-
APPLICATION
private static final java.lang.String APPLICATION
- See Also:
- Constant Field Values
-
DEFAULT
private static final java.lang.String DEFAULT
- See Also:
- Constant Field Values
-
SHORT
private static final java.lang.String SHORT
- See Also:
- Constant Field Values
-
MEDIUM
private static final java.lang.String MEDIUM
- See Also:
- Constant Field Values
-
LONG
private static final java.lang.String LONG
- See Also:
- Constant Field Values
-
FULL
private static final java.lang.String FULL
- See Also:
- Constant Field Values
-
-
Method Detail
-
getScope
public static int getScope(java.lang.String scope)
-
getStyle
public static int getStyle(java.lang.String style, java.lang.String errCode) throws javax.servlet.jsp.JspException- Throws:
javax.servlet.jsp.JspException
-
getContentTypeAttribute
public static java.lang.String getContentTypeAttribute(java.lang.String input, java.lang.String name)Get the value associated with a content-type attribute. Syntax defined in RFC 2045, section 5.1.
-
getRequestLocales
public static java.util.Enumeration getRequestLocales(javax.servlet.http.HttpServletRequest request)
HttpServletRequest.getLocales() returns the server's default locale if the request did not specify a preferred language. We do not want this behavior, because it prevents us from using the fallback locale. We therefore need to return an empty Enumeration if no preferred locale has been specified. This way, the logic for the fallback locale will be able to kick in.
-
-