public final class PluginBridge extends JNLPFile
JNLPFile.ManifestBoolean, JNLPFile.ManifestsAttributes
codeBase, component, defaultArch, defaultLocale, defaultOS, fileLocation, fileVersion, info, launchType, parserSettings, resources, security, sharedResources, sourceLocation, specVersion, TITLE_NOT_FOUND, uniqueKey, update
Constructor and Description |
---|
PluginBridge(java.net.URL codebase,
java.net.URL documentBase,
java.lang.String jar,
java.lang.String main,
int width,
int height,
PluginParameters params)
Creates a new PluginBridge using a default JNLPCreator.
|
PluginBridge(java.net.URL codebase,
java.net.URL documentBase,
java.lang.String archive,
java.lang.String main,
int width,
int height,
PluginParameters params,
JNLPCreator jnlpCreator) |
Modifier and Type | Method and Description |
---|---|
boolean |
codeBaseLookup() |
java.util.List<java.lang.String> |
getArchiveJars() |
java.util.List<java.lang.String> |
getCodeBaseFolders() |
java.lang.String |
getDebugJnlp() |
DownloadOptions |
getDownloadOptions() |
PluginParameters |
getParams() |
SecurityDesc.RequestedPermissionLevel |
getRequestedPermissionLevel() |
ResourcesDesc |
getResources(java.util.Locale locale,
java.lang.String os,
java.lang.String arch) |
ResourcesDesc[] |
getResourcesDescs(java.util.Locale locale,
java.lang.String os,
java.lang.String arch) |
java.lang.String |
getTitle() |
boolean |
haveDebugJnlp() |
boolean |
isApplet() |
boolean |
isApplication() |
boolean |
isComponent() |
boolean |
isInstaller() |
static java.lang.String |
strippClass(java.lang.String s) |
java.lang.String |
toJnlp(boolean needSecurity,
boolean useHref,
boolean fix) |
boolean |
useJNLPHref() |
createJnlpTitle, createJnlpVendor, createJnlpVendorValue, createNameForDesktopFile, getApplet, getApplication, getCodeBase, getComponent, getFileLocation, getFileVersion, getInformation, getInformation, getInstaller, getLaunchInfo, getManifestsAttributes, getNewVMArgs, getNotNullProbalbeCodeBase, getParserSettings, getResources, getResourcesDescs, getSecurity, getSourceLocation, getSpecVersion, getTitle, getTitleFromJnlp, getTitleFromManifest, getUniqueKey, getUpdate, getVendor, getVendor, localeMatches, needsNewVM, openURL, requiresSignedJNLPWarning, setDefaults, setSignedJNLPAsMissing
public PluginBridge(java.net.URL codebase, java.net.URL documentBase, java.lang.String jar, java.lang.String main, int width, int height, PluginParameters params) throws java.lang.Exception
codebase
- as specified in attributedocumentBase
- as specified in attributejar
- jar attribute valuemain
- main method attribute valuewidth
- width of appelt as specified in attributeheight
- height of applet as specified in attributeparams
- parameters as parsed from source htmljava.lang.Exception
- general exception as anything can happenpublic PluginBridge(java.net.URL codebase, java.net.URL documentBase, java.lang.String archive, java.lang.String main, int width, int height, PluginParameters params, JNLPCreator jnlpCreator) throws java.lang.Exception
java.lang.Exception
public java.util.List<java.lang.String> getArchiveJars()
public boolean codeBaseLookup()
public boolean useJNLPHref()
public PluginParameters getParams()
public SecurityDesc.RequestedPermissionLevel getRequestedPermissionLevel()
getRequestedPermissionLevel
in class JNLPFile
public DownloadOptions getDownloadOptions()
getDownloadOptions
in class JNLPFile
public java.lang.String getTitle()
public ResourcesDesc getResources(java.util.Locale locale, java.lang.String os, java.lang.String arch)
getResources
in class JNLPFile
locale
- preferred locale of resourceos
- preferred os of resourcearch
- preferred arch of resourcepublic java.util.List<java.lang.String> getCodeBaseFolders()
public ResourcesDesc[] getResourcesDescs(java.util.Locale locale, java.lang.String os, java.lang.String arch)
getResourcesDescs
in class JNLPFile
locale
- preferred locale of resourceos
- preferred os of resourcearch
- preferred arch of resourcepublic boolean isApplet()
public boolean isApplication()
isApplication
in class JNLPFile
public boolean isComponent()
isComponent
in class JNLPFile
public boolean isInstaller()
isInstaller
in class JNLPFile
public java.lang.String getDebugJnlp()
public boolean haveDebugJnlp()
public java.lang.String toJnlp(boolean needSecurity, boolean useHref, boolean fix)
public static java.lang.String strippClass(java.lang.String s)