org.apache.myfaces.tobago.context
Class UserAgent

java.lang.Object
  extended by org.apache.myfaces.tobago.context.UserAgent
All Implemented Interfaces:
Serializable

public class UserAgent
extends Object
implements Serializable

See Also:
Serialized Form

Field Summary
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_5_0
          e. g.
static UserAgent MOZILLA
          Deprecated. no longer supported, since Tobago 1.5
static UserAgent MOZILLA_4_7
          Deprecated. no longer supported, since Tobago 1.5
static UserAgent MOZILLA_5_0
          Deprecated. no longer supported, since Tobago 1.5
static UserAgent MOZILLA_5_0_R1_6
          Deprecated. no longer supported, since Tobago 1.5
static UserAgent MSIE
           
static UserAgent MSIE_10_0
           
static UserAgent MSIE_5_0
          Deprecated. no longer supported, since Tobago 1.5
static UserAgent MSIE_5_0_MAC
          Deprecated. no longer supported, since Tobago 1.5
static UserAgent MSIE_5_5
          Deprecated. no longer supported, since Tobago 1.5
static UserAgent MSIE_6_0
           
static UserAgent MSIE_6_0_MAC
          Deprecated. no longer supported, since Tobago 1.5
static UserAgent MSIE_7_0
           
static UserAgent MSIE_7_0_COMPAT
           
static UserAgent MSIE_7_O
          Deprecated. no longer supported, since Tobago 1.5. Misspelled. Use MSIE_7_0
static UserAgent MSIE_8_0
           
static UserAgent MSIE_9_0
           
static UserAgent OPERA
          Deprecated. no longer supported, since Tobago 1.5. Please use PRESTO.
static UserAgent OPERA_5_0
          Deprecated. no longer supported, since Tobago 1.5. Please use PRESTO.
static UserAgent OPERA_6_0
          Deprecated. no longer supported, since Tobago 1.5. Please use PRESTO.
static UserAgent OPERA_7_11
          Deprecated. no longer supported, since Tobago 1.5. Please use PRESTO.
static UserAgent PRESTO
          e. g.
static UserAgent WEBKIT
          e. g.
 
Method Summary
 List<String> getFallbackList()
           
static UserAgent getInstance(String header)
           
static UserAgent getInstanceForId(String id)
          Deprecated. no longer supported, since Tobago 1.5
 boolean hasCapability(Capability capability)
           
 boolean isMozilla()
          Deprecated. no longer supported, since Tobago 1.5
 boolean isMsie()
           
 boolean isMsie6()
           
 String toString()
          Deprecated. don't use toString() functionality, but for logging!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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. Use MSIE_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_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

public static final UserAgent OPERA
Deprecated. no longer supported, since Tobago 1.5. Please use PRESTO.

OPERA_5_0

@Deprecated
public static final UserAgent OPERA_5_0
Deprecated. no longer supported, since Tobago 1.5. Please use PRESTO.

OPERA_6_0

@Deprecated
public static final UserAgent OPERA_6_0
Deprecated. no longer supported, since Tobago 1.5. Please use PRESTO.

OPERA_7_11

@Deprecated
public static final UserAgent OPERA_7_11
Deprecated. no longer supported, since Tobago 1.5. Please use PRESTO.

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.0


GECKO_5_0

public static final UserAgent GECKO_5_0
e. g. Firefox 5.0


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

public boolean isMsie6()

isMozilla

@Deprecated
public boolean isMozilla()
Deprecated. no longer supported, since Tobago 1.5


getFallbackList

public List<String> getFallbackList()

getInstance

public static UserAgent getInstance(String header)

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!

Overrides:
toString in class Object


Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.