2004.04.29


com.jdc.http.user
Class HttpOperatingSystem

java.lang.Object
  |
  +--com.jdc.lang.Object
        |
        +--com.jdc.lang.SerializableObject
              |
              +--com.jdc.app.user.OperatingSystem
                    |
                    +--com.jdc.http.user.HttpOperatingSystem
All Implemented Interfaces:
Serializable

public class HttpOperatingSystem
extends OperatingSystem

HttpOperatingSystem contains all available information regarding the user's operating system. This operating system information is typically obtained by executing the JavaScript code in EnvironmentSensing.js (include script file).

Version:
1.0
Author:
Jay Damon
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.jdc.lang.Object
string
 
Constructor Summary
HttpOperatingSystem()
          Constructs a new HttpOperatingSystem object.
 
Method Summary
 String getAppVersion()
          Returns the operating system appVersion.
 String getUserAgent()
          Returns the browser user agent property.
 boolean isOperatingSystem(String operatingSystem)
          Returns true if the operating system is the specified operating system.
 void setAppVersion(String appVersion)
          Sets the operating system appVersion.
 void setUserAgent(String userAgent)
          Sets the browser user agent property obtained from the JavaScript: userAgent = navigator.userAgent;
 
Methods inherited from class com.jdc.app.user.OperatingSystem
getName, isMacintosh, isWindows
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpOperatingSystem

public HttpOperatingSystem()
Constructs a new HttpOperatingSystem object.

Method Detail

getAppVersion

public String getAppVersion()
Returns the operating system appVersion.

Returns:
String

getUserAgent

public String getUserAgent()
Returns the browser user agent property.

Returns:
String

isOperatingSystem

public boolean isOperatingSystem(String operatingSystem)
Returns true if the operating system is the specified operating system.

Specified by:
isOperatingSystem in class OperatingSystem
Returns:
boolean

setAppVersion

public void setAppVersion(String appVersion)
Sets the operating system appVersion.

Parameters:
appVersion - The operating system appVersion.

setUserAgent

public void setUserAgent(String userAgent)
Sets the browser user agent property obtained from the JavaScript: userAgent = navigator.userAgent;

Parameters:
userAgent - The browser user agent property.

2004.04.29



Copyright © 2004 J. Damon & Co.; All Rights Reserved WorldWide.