netx.jnlp.services

Class ServiceUtil


public class ServiceUtil
extends java.lang.Object

Provides static methods to interact useful for using the JNLP services.

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

Method Summary

(package private) static Object
createPrivilegedProxy(Class iface, Object receiver)
Creates a Proxy object implementing the specified interface when makes all calls in the security context of the system classes (ie, AllPermissions).
static javax.jnlp.BasicService
getBasicService()
Returns the BasicService reference, or null if the service is unavailable.
static javax.jnlp.ClipboardService
getClipboardService()
Returns the ClipboardService reference, or null if the service is unavailable.
static javax.jnlp.DownloadService
getDownloadService()
Returns the DownloadService reference, or null if the service is unavailable.
static javax.jnlp.ExtensionInstallerService
getExtensionInstallerService()
Returns the ExtensionInstallerService reference, or null if the service is unavailable.
static javax.jnlp.FileOpenService
getFileOpenService()
Returns the FileOpenService reference, or null if the service is unavailable.
static javax.jnlp.FileSaveService
getFileSaveService()
Returns the FileSaveService reference, or null if the service is unavailable.
static javax.jnlp.PersistenceService
getPersistenceService()
Returns the PersistenceService reference, or null if the service is unavailable.
static javax.jnlp.PrintService
getPrintService()
Returns the PrintService reference, or null if the service is unavailable.

Method Details

createPrivilegedProxy

(package private) static Object createPrivilegedProxy(Class iface,
                                                      Object receiver)
Creates a Proxy object implementing the specified interface when makes all calls in the security context of the system classes (ie, AllPermissions). This means that the services must be more than extremely careful in the operations they perform.

getBasicService

public static javax.jnlp.BasicService getBasicService()
Returns the BasicService reference, or null if the service is unavailable.

getClipboardService

public static javax.jnlp.ClipboardService getClipboardService()
Returns the ClipboardService reference, or null if the service is unavailable.

getDownloadService

public static javax.jnlp.DownloadService getDownloadService()
Returns the DownloadService reference, or null if the service is unavailable.

getExtensionInstallerService

public static javax.jnlp.ExtensionInstallerService getExtensionInstallerService()
Returns the ExtensionInstallerService reference, or null if the service is unavailable.

getFileOpenService

public static javax.jnlp.FileOpenService getFileOpenService()
Returns the FileOpenService reference, or null if the service is unavailable.

getFileSaveService

public static javax.jnlp.FileSaveService getFileSaveService()
Returns the FileSaveService reference, or null if the service is unavailable.

getPersistenceService

public static javax.jnlp.PersistenceService getPersistenceService()
Returns the PersistenceService reference, or null if the service is unavailable.

getPrintService

public static javax.jnlp.PrintService getPrintService()
Returns the PrintService reference, or null if the service is unavailable.