atg.servlet
Class BrowserType

java.lang.Object
  extended by atg.servlet.BrowserType
All Implemented Interfaces:
java.io.Serializable

public class BrowserType
extends java.lang.Object
implements java.io.Serializable

A class that defines a single browser type, like "java", "javascript", etc. Each browser type has a name and a list of matching patterns.

See Also:
Serialized Form

Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Constructor Summary
BrowserType()
           
 
Method Summary
 java.lang.String getDisplayName()
           
 java.lang.String getName()
          Returns the value of the name property
 java.lang.String[] getPatterns()
          Returns the value of the patterns property
 void setDisplayName(java.lang.String pDisplayName)
          Sets the property DisplayName.
 void setName(java.lang.String pName)
          Sets the name of this browser type.
 void setPatterns(java.lang.String[] pPatterns)
          Sets the patterns of "user-agent" that match this browser type.
 java.lang.String toString()
          Returns the String representation consisting of a list of the patterns
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string

Constructor Detail

BrowserType

public BrowserType()
Method Detail

setName

public void setName(java.lang.String pName)
Sets the name of this browser type. Names are case sensitive.


getName

public java.lang.String getName()
Returns the value of the name property


setDisplayName

public void setDisplayName(java.lang.String pDisplayName)
Sets the property DisplayName. This is the name displayed for this type in a user interface.


getDisplayName

public java.lang.String getDisplayName()
Returns:
The value of the property DisplayName.

setPatterns

public void setPatterns(java.lang.String[] pPatterns)
Sets the patterns of "user-agent" that match this browser type. These patterns are strings using simple regular expressions.


getPatterns

public java.lang.String[] getPatterns()
Returns the value of the patterns property


toString

public java.lang.String toString()
Returns the String representation consisting of a list of the patterns

Overrides:
toString in class java.lang.Object