com.opera.core.systems.scope.services.ums
Class CoreUtils

java.lang.Object
  extended by com.opera.core.systems.scope.AbstractService
      extended by com.opera.core.systems.scope.services.ums.CoreUtils
All Implemented Interfaces:
ICoreUtils

public class CoreUtils
extends AbstractService
implements ICoreUtils

Author:
Andreas Tolf Tolfsen

Field Summary
 
Fields inherited from class com.opera.core.systems.scope.AbstractService
services
 
Constructor Summary
CoreUtils(ScopeServices services, java.lang.String version)
           
 
Method Summary
 java.lang.String getBinaryPath()
          The full path of the currently running binary.
 java.lang.String getCoreVersion()
          Which Core version this instance is running, e.g.
 java.lang.String getOperatingSystem()
          Gets a string which describes the operating system the connected Opera instance is running on.
 java.lang.Integer getProcessID()
          Gets the process ID of connected Opera instance.
 java.lang.String getProduct()
          A string which describes the product.
 java.lang.String getUserAgent()
          Gets the User-Agent string, typically something like "Opera/9.80 (Windows NT 6.1; U; en) Presto/2.7.62 Version/11.01"
 boolean hasMetaInformation()
          Whether this version of the CoreUtils service supports getting metadata.
 void init()
           
 
Methods inherited from class com.opera.core.systems.scope.AbstractService
buildPayload, executeCommand, executeCommand, getVersion, isVersionInRange, sleep, xpathIterator, xpathPointer, xpathQuery
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoreUtils

public CoreUtils(ScopeServices services,
                 java.lang.String version)
Method Detail

init

public void init()
Specified by:
init in interface ICoreUtils

hasMetaInformation

public boolean hasMetaInformation()
Description copied from interface: ICoreUtils
Whether this version of the CoreUtils service supports getting metadata.

Specified by:
hasMetaInformation in interface ICoreUtils
Returns:
true if meta information is available

getCoreVersion

public java.lang.String getCoreVersion()
Description copied from interface: ICoreUtils
Which Core version this instance is running, e.g. "2.8.119".

Specified by:
getCoreVersion in interface ICoreUtils
Returns:
version number

getOperatingSystem

public java.lang.String getOperatingSystem()
Description copied from interface: ICoreUtils
Gets a string which describes the operating system the connected Opera instance is running on. An example would be "Window NT 6.1"

Specified by:
getOperatingSystem in interface ICoreUtils
Returns:
operating system

getProduct

public java.lang.String getProduct()
Description copied from interface: ICoreUtils
A string which describes the product. For regular desktop builds this will be "desktop". Other examples are "mobile" and "gogi".

Specified by:
getProduct in interface ICoreUtils
Returns:
product type

getBinaryPath

public java.lang.String getBinaryPath()
Description copied from interface: ICoreUtils
The full path of the currently running binary.

Specified by:
getBinaryPath in interface ICoreUtils
Returns:
path

getUserAgent

public java.lang.String getUserAgent()
Description copied from interface: ICoreUtils
Gets the User-Agent string, typically something like "Opera/9.80 (Windows NT 6.1; U; en) Presto/2.7.62 Version/11.01"

Specified by:
getUserAgent in interface ICoreUtils
Returns:
user agent

getProcessID

public java.lang.Integer getProcessID()
Description copied from interface: ICoreUtils
Gets the process ID of connected Opera instance. Might not be present if the build does not support retrieving process ID's.

Specified by:
getProcessID in interface ICoreUtils
Returns:
pid


Copyright © 2011. All Rights Reserved.