IRISLIB database
UserAgent Class Reference

Determine browser parameters from HTTP_USER_AGENT CGI variable. More...

Inheritance diagram for UserAgent:
Collaboration diagram for UserAgent:

Static Public Member Functions

_.Library.Boolean XMLHttpRequest (_.Library.String userAgent, _.Library.String browser, _.Library.String platform, _.Library.String version)
 XMLHttpRequest returns true if XMLHttpRequest object is supported by the browser indicated by the userAgent. More...
 

Public Attributes

 Browser
 Browser name. More...
 
 Platform
 Browser platform. More...
 
 SupportsXMLHttpRequest
 Supports XMLHttpRequest. More...
 
 UserAgent
 User agent for this class. More...
 
 Version
 Browser version. More...
 

Private Member Functions

_.Library.Status OnNew (_.Library.String userAgent)
 Initialize with HTTP_USER_AGENT.
 

Additional Inherited Members

- Public Member Functions inherited from RegisteredObject
_.Library.Status OnAddToSaveSet (_.Library.Integer depth, _.Library.Integer insert, _.Library.Integer callcount)
 This callback method is invoked when the current object is added to the SaveSet,. More...
 
_.Library.Status OnClose ()
 This callback method is invoked by the <METHOD>Close</METHOD> method to. More...
 
_.Library.Status OnConstructClone (_.Library.RegisteredObject object, _.Library.Boolean deep, _.Library.String cloned)
 This callback method is invoked by the <METHOD>ConstructClone</METHOD> method to. More...
 
_.Library.Status OnNew ()
 This callback method is invoked by the <METHOD>New</METHOD> method to. More...
 
_.Library.Status OnValidateObject ()
 This callback method is invoked by the <METHOD>ValidateObject</METHOD> method to. More...
 
- Static Public Attributes inherited from RegisteredObject
 CAPTION = None
 Optional name used by the Form Wizard for a class when generating forms. More...
 
 JAVATYPE = None
 The Java type to be used when exported.
 
 PROPERTYVALIDATION = None
 This parameter controls the default validation behavior for the object. More...
 

Detailed Description

Determine browser parameters from HTTP_USER_AGENT CGI variable.

Member Function Documentation

◆ XMLHttpRequest()

_.Library.Boolean XMLHttpRequest ( _.Library.String  userAgent,
_.Library.String  browser,
_.Library.String  platform,
_.Library.String  version 
)
static

XMLHttpRequest returns true if XMLHttpRequest object is supported by the browser indicated by the userAgent.

Current implementation parses User Agents beginning with:

Opera/

Browser type is Opera. The version must be greater than or equal to 7.60.

Mozilla/5.0 (

If the User Agent contains "Safari/", the browser type is Safari. The version number must be greater 119.0.

Otherwise the platform type must be one of Windows, Macintosh, or X11 and the User Agent must contain "Gecko/".

Otherwise User Agent must contain "rv:". The browser type is Mozilla and the version must be greater than 1.3. Camino version 5– plus browsers listed in exclude-list are not supported.

Member Data Documentation

◆ Browser

Browser

Browser name.

 

◆ Platform

Platform

Browser platform.

 

◆ SupportsXMLHttpRequest

SupportsXMLHttpRequest

Supports XMLHttpRequest.

 

◆ UserAgent

User agent for this class.

 

◆ Version

Version

Browser version.