Package net.sourceforge.jnlp
Class PluginBridge
java.lang.Object
net.sourceforge.jnlp.JNLPFile
net.sourceforge.jnlp.PluginBridge
Allows reuse of code that expects a JNLPFile object,
while overriding behaviour specific to applets.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.sourceforge.jnlp.JNLPFile
JNLPFile.ManifestBoolean, JNLPFile.ManifestsAttributes -
Field Summary
Fields inherited from class net.sourceforge.jnlp.JNLPFile
codeBase, component, defaultArch, defaultLocale, defaultOS, fileLocation, fileVersion, info, launchType, parserSettings, resources, security, sharedResources, sourceLocation, specVersion, TITLE_NOT_FOUND, uniqueKey, update -
Constructor Summary
ConstructorsConstructorDescriptionPluginBridge(URL codebase, URL documentBase, String jar, String main, int width, int height, PluginParameters params) Creates a new PluginBridge using a default JNLPCreator.PluginBridge(URL codebase, URL documentBase, String archive, String main, int width, int height, PluginParameters params, JNLPCreator jnlpCreator) -
Method Summary
Methods inherited from class net.sourceforge.jnlp.JNLPFile
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
-
Constructor Details
-
PluginBridge
public PluginBridge(URL codebase, URL documentBase, String jar, String main, int width, int height, PluginParameters params) throws Exception Creates a new PluginBridge using a default JNLPCreator.- Parameters:
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 html- Throws:
Exception- general exception as anything can happen
-
PluginBridge
public PluginBridge(URL codebase, URL documentBase, String archive, String main, int width, int height, PluginParameters params, JNLPCreator jnlpCreator) throws Exception - Throws:
Exception
-
-
Method Details
-
getArchiveJars
-
codeBaseLookup
public boolean codeBaseLookup() -
useJNLPHref
public boolean useJNLPHref() -
getParams
-
getRequestedPermissionLevel
- Overrides:
getRequestedPermissionLevelin classJNLPFile
-
getDownloadOptions
- Overrides:
getDownloadOptionsin classJNLPFile- Returns:
- options of download
-
getTitle
-
getResources
- Overrides:
getResourcesin classJNLPFile- Parameters:
locale- preferred locale of resourceos- preferred os of resourcearch- preferred arch of resource- Returns:
- the resources section of the JNLP file for the specified locale, os, and arch.
-
getCodeBaseFolders
- Returns:
- the list of folders to be added to the codebase
-
getResourcesDescs
- Overrides:
getResourcesDescsin classJNLPFile- Parameters:
locale- preferred locale of resourceos- preferred os of resourcearch- preferred arch of resource- Returns:
- the resources section of the JNLP file for the specified locale, os, and arch.
-
isApplet
public boolean isApplet() -
isApplication
public boolean isApplication()- Overrides:
isApplicationin classJNLPFile- Returns:
- whether the lauch descriptor describes an Application.
-
isComponent
public boolean isComponent()- Overrides:
isComponentin classJNLPFile- Returns:
- whether the lauch descriptor describes a Component.
-
isInstaller
public boolean isInstaller()- Overrides:
isInstallerin classJNLPFile- Returns:
- whether the lauch descriptor describes an Installer.
-
getDebugJnlp
-
haveDebugJnlp
public boolean haveDebugJnlp() -
toJnlp
-
strippClass
-