Package com.dassault_systemes.PortalNative.PLNtools

   
Class OSServices

 
Class Hierarchy
java.lang.Object
  |
  +-com.dassault_systemes.PortalNative.PLNtools.OSServices
Class Location

Framework : PortalNative

Module : PLNtools

Class Description

public class OSServices

This class manages the differents OSes on the browsers.

Field Summary
public static final int OS_AIX
Identifying value for AIX returned by getOSID.
public static final int OS_HPUX
Identifying value for HPUX returned by getOSID.
public static final int OS_IRIX
Identifying value for Irix returned by getOSID.
public static final int OS_SOLARIS
Identifying value for SOLARIS returned by getOSID.
public static final int OS_UNKNOWN
Identifying value for an unknown OS returned by getOSID.
public static final int OS_WINDOWS95
Identifying value for Windows95 returned by getOSID.
public static final int OS_WINDOWSNT
Identifying value for Windows NT returned by getOSID.

Constructor Summary

Method Summary
public static OSServices get()
Returns the unique instance of this class
public String getenv(String name)
Returns an environment variable value or null if not found
public int getOSID()
Retrieves the type of platform.
public String getTempPath()
Returns the path to a temporary directory location, such as "c:\tmp\" for Windows and "/tmp/" for Unix


Field Detail

OS_AIX

    public static final int OS_AIX
Identifying value for AIX returned by getOSID.


OS_HPUX

    public static final int OS_HPUX
Identifying value for HPUX returned by getOSID.


OS_IRIX

    public static final int OS_IRIX
Identifying value for Irix returned by getOSID.


OS_SOLARIS

    public static final int OS_SOLARIS
Identifying value for SOLARIS returned by getOSID.


OS_UNKNOWN

    public static final int OS_UNKNOWN
Identifying value for an unknown OS returned by getOSID.


OS_WINDOWS95

    public static final int OS_WINDOWS95
Identifying value for Windows95 returned by getOSID.


OS_WINDOWSNT

    public static final int OS_WINDOWSNT
Identifying value for Windows NT returned by getOSID.


Constructor Detail

Method Detail

get

    public static OSServices get()

Returns the unique instance of this class


getenv

    public String getenv(String name)

Returns an environment variable value or null if not found

Parameters:
name
name of the environment variable
Return:
the value of the environment variable

getOSID

    public int getOSID()

Retrieves the type of platform.
Role: Retrieves the type of operating system on where the code is running

Return:
Legal values
OS_AIX
Operating System is AIX.
OS_SOLARIS
Operating System is SOLARIS.
OS_IRIX
Operating System is IRIX.
OS_HPUX
Operating System is HPUX.
OS_WindowsNT
Operating System is WindowsNT.
OS_Windows95
Operating System is Windows95 .
OS_UNKNOWN
Operating System is Unknown or an error as occured.

getTempPath

    public String getTempPath()

Returns the path to a temporary directory location, such as "c:\tmp\" for Windows and "/tmp/" for Unix



Copyright © 2000, Dassault Systèmes. All rights reserved