|
WebObjects 5.4.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.webobjects.appserver.WOElement com.webobjects.appserver.WOComponent com.webobjects.eodistribution.WOJavaClientJNLP
public class WOJavaClientJNLP
WOJavaClientJNLP is the component called to dynamically create the Web Start JNLP information for WebObjects Java Client applications. The JNLP information is in XML format, and its format is defined in WOJavaClientJNLP.wo, mainly by using WOXMLNode components. The implemented format uses several variables, repetitions and conditionals. The WOJavaClientJNLP class mostly consists of accessor methods for these variables. Developers configure the values through bindings on WOJavaClientComponents (the values are read from the bindings and transferred to the WOJavaClientJNLP component).
If developers create additional bindings for the WOJavaClientComponent, they will be passed as additionalMainArguments to the WOJavaClientJNLP component and then then (automatically) to the Java Client applications, as long as the values are of type String.
The JNLP XML format defined here includes all the commonly used parameters. However, it can be subclassed for very special situations. In these cases, additional string bindings in the WOJavaClientComponent can be used for additional variables in the JNLP file. Since these will be passed to the WOJavaClientJNLP component as "additionalMainArguments", subclasses can override either the method setAdditionalMainArguments or the method additionalMainArguments in order to filter these variables out of the list of "real" main arguments. To use your own WOJavaClientJNLP subclass, specify the class name with the JNLPComponentName binding on the WOJavaClientComponent.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.webobjects.appserver.WOComponent |
---|
WOComponent.Event |
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions |
---|
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility |
Nested classes/interfaces inherited from interface com.webobjects.foundation.NSValidation |
---|
NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException |
Field Summary |
---|
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions |
---|
KeyPathSeparator |
Constructor Summary | |
---|---|
WOJavaClientJNLP(WOContext context)
Creates a new WOJavaClientJNLP component in a given context. |
Method Summary | |
---|---|
NSDictionary |
additionalMainArguments()
Returns the additional command line parameters (in addition to the predefined, standard ones) which will be passed to the main method on the client. |
String |
applicationDescription()
Returns a string describing the application. |
String |
applicationIcon()
Returns the URL for the (optional) application icon. |
String |
applicationName()
Returns the descriptive client application name. |
String |
applicationURL()
Returns the application's URL for the JNLP file generation. |
String |
channelClassName()
Returns the channelClassName for the JNLP file generation. |
String |
codebase()
Returns the codebase URL. |
boolean |
hasApplicationDescription()
Returns whether the string describing the application is set. |
boolean |
hasApplicationIcon()
Returns whether the URL for the (optional) application icon is set. |
boolean |
hasApplicationName()
Returns whether the application name is set. |
boolean |
hasHomepage()
Returns whether the homepage URL is set. |
boolean |
hasVendor()
Returns whether the vendor is set. |
String |
homepage()
Returns the Homepage URL. |
String |
j2seVersion()
Returns J2SE version required for the client installation, by default "1.4+". |
String |
jarFileDownload()
Returns the download option for the current jar file (the default is "eager", but you may use "lazy"). |
String |
jarFileMain()
Returns the "main" flag for the current jar file ( null by default). |
String |
jarFileName()
Returns the current jar file that the WORepetition (for the jar file names) is iterating over while generating the JNLP file. |
NSArray |
jarFileNames()
Returns the array of jar files to be downloaded by Web Start (at the codebase URL). |
String |
jnlpURL()
Returns the URL at which Web Start will look an updated JNLP file. |
String |
mainArgument()
Returns the current main argument that the WORepetition (for the main arguments) is iterating over over while generating the JNLP file. |
NSArray |
mainArguments()
Returns all command line parameters which will be passed to the Java Client application's main method. |
String |
mainClass()
Returns the full Java class name containing the main method for the client, by default com.webobjects.eoapplication.client.EOClientApplicationSupport . |
boolean |
needsAllPermissions()
Returns whether the Java Client application needs all permissions (versus running in an applet-like sandbox). |
String |
page()
Returns the page for the JNLP file generation. |
void |
setAdditionalMainArguments(NSDictionary additionalMainArguments)
Sets additional command line parameters (in addition to the predefined, standard ones) which will be passed to the main method on the client. |
void |
setApplicationDescription(String applicationDescription)
Sets a string describing the application. |
void |
setApplicationIcon(String applicationIcon)
Sets a URL for the (optional) application icon. |
void |
setApplicationName(String applicationName)
Sets the descriptive client application name. |
void |
setApplicationURL(String applicationURL)
Sets the application's URL so that it can be used in the JNLP file generation. |
void |
setChannelClassName(String channelClassName)
Sets the channelClassName so that it can be used in the JNLP file generation. |
void |
setCodebase(String codebase)
Sets the codebase URL. |
void |
setHomepage(String homepage)
Sets the Homepage URL. |
void |
setJ2seVersion(String j2seVersion)
Sets the J2SE version required for the client installation. |
void |
setJarFileName(String name)
Sets the current jar file that the WORepetition (for the jar file names) is iterating over while generating the JNLP file. |
void |
setJarFileNames(NSArray jarFileNames)
Sets the array of jar files to be downloaded by Web Start (at the codebase URL). |
void |
setMainArgument(String name)
Sets the current main argument that the WORepetition (for the main arguments) is iterating over over while generating the JNLP file. |
void |
setNeedsAllPermissions(boolean flag)
Sets whether the Java Client application needs all permissions (versus running in an applet-like sandbox). |
void |
setPage(String page)
Sets the page so that it can be used in the JNLP file generation. |
void |
setVendor(String vendor)
Sets the descriptive vendor name. |
String |
vendor()
Returns the descriptive vendor name. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public WOJavaClientJNLP(WOContext context)
context
- the WebObjects context for the WOJavaClientJNLP componentMethod Detail |
---|
public void setApplicationURL(String applicationURL)
applicationURL
- the application URL, usually dynamically derived from the WebObjects application server base URLpublic String applicationURL()
public void setPage(String page)
page
- the name of the WOJavaClientComponent's pagepublic String page()
public void setChannelClassName(String channelClassName)
channelClassName
- the class name of the custom EODistributionChannel subclasspublic String channelClassName()
public String j2seVersion()
public void setJ2seVersion(String j2seVersion)
public void setApplicationName(String applicationName)
applicationName
- the application namepublic String applicationName()
public boolean hasApplicationName()
true
if the application name is set; false
otherwisepublic void setVendor(String vendor)
vendor
- the vendor namepublic String vendor()
public boolean hasVendor()
true
if the vendor is set; false
otherwisepublic void setHomepage(String homepage)
homepage
- the homepage URLpublic String homepage()
public boolean hasHomepage()
true
if the homepage URL is set; false
otherwisepublic void setApplicationDescription(String applicationDescription)
applicationDescription
- the string describing the applicationpublic String applicationDescription()
public boolean hasApplicationDescription()
true
if the string describing the application is set; false
otherwisepublic void setApplicationIcon(String applicationIcon)
applicationIcon
- the URL for the (optional) application iconpublic String applicationIcon()
public boolean hasApplicationIcon()
true
if the URL for the (optional) application icon is set; false
otherwisepublic void setNeedsAllPermissions(boolean flag)
flag
- true
if the Java Client application needs all permissions; false
otherwisepublic boolean needsAllPermissions()
true
if the Java Client application needs all permissions; false
otherwisepublic void setCodebase(String codebase)
codebase
- the codebase URLpublic String codebase()
public String jnlpURL()
public void setJarFileNames(NSArray jarFileNames)
jarFileNames
- the NSArray with the names of the jar files that Web Start should downloadpublic NSArray jarFileNames()
public void setJarFileName(String name)
name
- the name of the current jar filepublic String jarFileName()
public String jarFileMain()
null
by default). See the Web Start and JNLP documentation for more information.
public String jarFileDownload()
public String mainClass()
com.webobjects.eoapplication.client.EOClientApplicationSupport
.
public void setAdditionalMainArguments(NSDictionary additionalMainArguments)
additionalMainArguments
- the NSDictionary with additional parameters for the main methodpublic NSDictionary additionalMainArguments()
public NSArray mainArguments()
public void setMainArgument(String name)
name
- the name of the current main argumentpublic String mainArgument()
|
Last updated June 2008 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |