Class UserAgent
- java.lang.Object
-
- org.apache.myfaces.tobago.context.UserAgent
-
- All Implemented Interfaces:
Serializable
public final class UserAgent extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static UserAgent
DEFAULT
static String
DEFAULT_NAME
static UserAgent
GECKO
e. g.static UserAgent
GECKO_1_8
e. g.static UserAgent
GECKO_1_9
e. g.static UserAgent
GECKO_2_0
e. g.static UserAgent
GECKO_23_0
e. g.static UserAgent
MOZILLA
Deprecated.no longer supported, since Tobago 1.5static UserAgent
MOZILLA_4_7
Deprecated.no longer supported, since Tobago 1.5static UserAgent
MOZILLA_5_0
Deprecated.no longer supported, since Tobago 1.5static UserAgent
MOZILLA_5_0_R1_6
Deprecated.no longer supported, since Tobago 1.5static UserAgent
MSIE
static UserAgent
MSIE_10_0
static UserAgent
MSIE_11_0
static UserAgent
MSIE_5_0
Deprecated.no longer supported, since Tobago 1.5static UserAgent
MSIE_5_0_MAC
Deprecated.no longer supported, since Tobago 1.5static UserAgent
MSIE_5_5
Deprecated.no longer supported, since Tobago 1.5static UserAgent
MSIE_6_0
static UserAgent
MSIE_6_0_MAC
Deprecated.no longer supported, since Tobago 1.5static UserAgent
MSIE_7_0
static UserAgent
MSIE_7_0_COMPAT
static UserAgent
MSIE_7_O
Deprecated.no longer supported, since Tobago 1.5.static UserAgent
MSIE_8_0
static UserAgent
MSIE_9_0
static UserAgent
OPERA
Deprecated.no longer supported, since Tobago 1.5.static UserAgent
OPERA_5_0
Deprecated.no longer supported, since Tobago 1.5.static UserAgent
OPERA_6_0
Deprecated.no longer supported, since Tobago 1.5.static UserAgent
OPERA_7_11
Deprecated.no longer supported, since Tobago 1.5.static UserAgent
PRESTO
e. g.static UserAgent
WEBKIT
e. g.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String[]
getCspHeaders()
String[]
getCspReportOnlyHeaders()
List<String>
getFallbackList()
static UserAgent
getInstance(String header)
static UserAgent
getInstanceForId(String id)
Deprecated.no longer supported, since Tobago 1.5boolean
hasCapability(Capability capability)
boolean
isMozilla()
Deprecated.no longer supported, since Tobago 1.5boolean
isMsie()
boolean
isMsie6()
Deprecated.no longer supported, since Tobago 3.0String
toString()
Deprecated.don't use toString() functionality, but for logging!
-
-
-
Field Detail
-
DEFAULT_NAME
public static final String DEFAULT_NAME
- See Also:
- Constant Field Values
-
DEFAULT
public static final UserAgent DEFAULT
-
MSIE
public static final UserAgent MSIE
-
MSIE_5_0
@Deprecated public static final UserAgent MSIE_5_0
Deprecated.no longer supported, since Tobago 1.5
-
MSIE_5_5
@Deprecated public static final UserAgent MSIE_5_5
Deprecated.no longer supported, since Tobago 1.5
-
MSIE_6_0
public static final UserAgent MSIE_6_0
-
MSIE_7_0
public static final UserAgent MSIE_7_0
-
MSIE_7_0_COMPAT
public static final UserAgent MSIE_7_0_COMPAT
-
MSIE_7_O
@Deprecated public static final UserAgent MSIE_7_O
Deprecated.no longer supported, since Tobago 1.5. Misspelled. UseMSIE_7_0
-
MSIE_8_0
public static final UserAgent MSIE_8_0
-
MSIE_9_0
public static final UserAgent MSIE_9_0
-
MSIE_10_0
public static final UserAgent MSIE_10_0
-
MSIE_11_0
public static final UserAgent MSIE_11_0
-
MSIE_5_0_MAC
@Deprecated public static final UserAgent MSIE_5_0_MAC
Deprecated.no longer supported, since Tobago 1.5
-
MSIE_6_0_MAC
@Deprecated public static final UserAgent MSIE_6_0_MAC
Deprecated.no longer supported, since Tobago 1.5
-
PRESTO
public static final UserAgent PRESTO
e. g. Opera 10
-
OPERA
@Deprecated public static final UserAgent OPERA
Deprecated.no longer supported, since Tobago 1.5. Please usePRESTO
.
-
OPERA_5_0
@Deprecated public static final UserAgent OPERA_5_0
Deprecated.no longer supported, since Tobago 1.5. Please usePRESTO
.
-
OPERA_6_0
@Deprecated public static final UserAgent OPERA_6_0
Deprecated.no longer supported, since Tobago 1.5. Please usePRESTO
.
-
OPERA_7_11
@Deprecated public static final UserAgent OPERA_7_11
Deprecated.no longer supported, since Tobago 1.5. Please usePRESTO
.
-
MOZILLA
@Deprecated public static final UserAgent MOZILLA
Deprecated.no longer supported, since Tobago 1.5
-
MOZILLA_4_7
@Deprecated public static final UserAgent MOZILLA_4_7
Deprecated.no longer supported, since Tobago 1.5
-
MOZILLA_5_0
@Deprecated public static final UserAgent MOZILLA_5_0
Deprecated.no longer supported, since Tobago 1.5
-
MOZILLA_5_0_R1_6
@Deprecated public static final UserAgent MOZILLA_5_0_R1_6
Deprecated.no longer supported, since Tobago 1.5
-
GECKO
public static final UserAgent GECKO
e. g. Firefox
-
GECKO_1_8
public static final UserAgent GECKO_1_8
e. g. Firefox 2.0
-
GECKO_1_9
public static final UserAgent GECKO_1_9
e. g. Firefox 3.0, 3.5, 3.6
-
GECKO_2_0
public static final UserAgent GECKO_2_0
e. g. Firefox 4 to 22
-
GECKO_23_0
public static final UserAgent GECKO_23_0
e. g. Firefox 23 or higher
-
WEBKIT
public static final UserAgent WEBKIT
e. g. Safari 4, Safari 5, Chrome
-
-
Method Detail
-
hasCapability
public boolean hasCapability(Capability capability)
-
isMsie
public boolean isMsie()
-
isMsie6
@Deprecated public boolean isMsie6()
Deprecated.no longer supported, since Tobago 3.0
-
isMozilla
@Deprecated public boolean isMozilla()
Deprecated.no longer supported, since Tobago 1.5
-
getCspHeaders
public String[] getCspHeaders()
- Returns:
- The HTTP header names for Content-Security-Policy.
-
getCspReportOnlyHeaders
public String[] getCspReportOnlyHeaders()
- Returns:
- The HTTP header name for Content-Security-Policy-Report-Only.
-
getInstanceForId
@Deprecated public static UserAgent getInstanceForId(String id)
Deprecated.no longer supported, since Tobago 1.5
-
toString
@Deprecated public String toString()
Deprecated.don't use toString() functionality, but for logging!
-
-