Homepage

netx.jnlp.services
Class XBasicService

java.lang.Object
  |
  +--netx.jnlp.services.XBasicService
All Implemented Interfaces:
javax.jnlp.BasicService

class XBasicService
extends java.lang.Object
implements javax.jnlp.BasicService

The BasicService JNLP service.

Version:
$Revision: 1.10 $
Author:
Jon A. Maxwell (JAM) - initial author

Constructor Summary
protected XBasicService()
           
 
Method Summary
 java.net.URL getCodeBase()
          Returns the codebase of the application, applet, or installer.
 boolean isOffline()
          Return true if the Environment is Offline
 boolean isWebBrowserSupported()
          Return true if a Web Browser is Supported
 boolean showDocument(java.net.URL url)
          Show a document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XBasicService

protected XBasicService()
Method Detail

getCodeBase

public java.net.URL getCodeBase()
Returns the codebase of the application, applet, or installer. If the codebase was not specified in the JNLP element then the main JAR's location is returned. If no main JAR was specified then the location of the JAR containing the main class is returned.

Specified by:
getCodeBase in interface javax.jnlp.BasicService

isOffline

public boolean isOffline()
Return true if the Environment is Offline

Specified by:
isOffline in interface javax.jnlp.BasicService

isWebBrowserSupported

public boolean isWebBrowserSupported()
Return true if a Web Browser is Supported

Specified by:
isWebBrowserSupported in interface javax.jnlp.BasicService

showDocument

public boolean showDocument(java.net.URL url)
Show a document.

Specified by:
showDocument in interface javax.jnlp.BasicService
Returns:
whether the document was opened

Homepage