net.sourceforge.jnlp.services
public class ServiceUtil extends java.lang.Object
Constructor and Description |
---|
ServiceUtil() |
Modifier and Type | Method and Description |
---|---|
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.
|
static boolean |
isSigned(ApplicationInstance app)
Returns whether the app requesting a JNLP service is a trusted
application
|
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 applicationInstanceExistsException
- 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.public static boolean isSigned(ApplicationInstance app)
app
- the application which is requesting the check. If null, the
current application is used.