|
IcedTea-Web NetX |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.jnlp.services.ServiceUtil
public class ServiceUtil
Provides static methods to interact useful for using the JNLP services.
Constructor Summary | |
---|---|
ServiceUtil()
|
Method Summary | |
---|---|
static boolean |
checkAccess(ApplicationInstance app,
SecurityDialogs.AccessType type,
java.lang.Object... extras)
Returns whether the app requesting a JNLP service has the right permissions. |
static boolean |
checkAccess(SecurityDialogs.AccessType type,
java.lang.Object... extras)
Returns whether the app requesting a JNLP service has the right permissions. |
static void |
checkExistingSingleInstance(JNLPFile jnlpFile)
Checks that this application (represented by the jnlp) isnt already running |
static BasicService |
getBasicService()
Returns the BasicService reference, or null if the service is unavailable. |
static ClipboardService |
getClipboardService()
Returns the ClipboardService reference, or null if the service is unavailable. |
static DownloadService |
getDownloadService()
Returns the DownloadService reference, or null if the service is unavailable. |
static ExtensionInstallerService |
getExtensionInstallerService()
Returns the ExtensionInstallerService reference, or null if the service is unavailable. |
static FileOpenService |
getFileOpenService()
Returns the FileOpenService reference, or null if the service is unavailable. |
static FileSaveService |
getFileSaveService()
Returns the FileSaveService reference, or null if the service is unavailable. |
static PersistenceService |
getPersistenceService()
Returns the PersistenceService reference, or null if the service is unavailable. |
static PrintService |
getPrintService()
Returns the PrintService reference, or null if the service is unavailable. |
static SingleInstanceService |
getSingleInstanceService()
Returns the SingleInstanceService reference, or null if the service is unavailable. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServiceUtil()
Method Detail |
---|
public static BasicService getBasicService()
public static ClipboardService getClipboardService()
public static DownloadService getDownloadService()
public static ExtensionInstallerService getExtensionInstallerService()
public static FileOpenService getFileOpenService()
public static FileSaveService getFileSaveService()
public static PersistenceService getPersistenceService()
public static PrintService getPrintService()
public static SingleInstanceService getSingleInstanceService()
public static void checkExistingSingleInstance(JNLPFile jnlpFile)
jnlpFile
- the JNLPFile
that specifies the application
InstanceExistsException
- if an instance of this application already existspublic static boolean checkAccess(SecurityDialogs.AccessType type, java.lang.Object... extras)
type
- the type of access being requestedextras
- extra Strings (usually) that are passed to the dialog for
message formatting.
public static boolean checkAccess(ApplicationInstance app, SecurityDialogs.AccessType type, java.lang.Object... extras)
app
- the application which is requesting the check. If null, the current
application is used.type
- the type of access being requestedextras
- extra Strings (usually) that are passed to the dialog for
message formatting.
|
IcedTea-Web NetX |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |