|
WebObjects 5.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.webobjects.appserver.WOElement | +--com.webobjects.appserver.WOComponent | +--com.webobjects.eodistribution.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.
Inner classes inherited from class com.webobjects.appserver.WOComponent |
WOComponent.Event |
Inner classes inherited from class com.webobjects.foundation.NSKeyValueCoding |
NSKeyValueCoding.DefaultImplementation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.Null, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.Utility, NSKeyValueCoding.ValueAccessor |
Inner classes inherited from class com.webobjects.foundation.NSKeyValueCodingAdditions |
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility |
Inner classes inherited from class com.webobjects.foundation.NSValidation |
NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException |
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding |
NullValue |
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.3+". |
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 |
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 NSDictionary additionalMainArguments()
public String applicationDescription()
public String applicationIcon()
public String applicationName()
public String applicationURL()
public String channelClassName()
public String codebase()
public boolean hasApplicationDescription()
true
if the string describing the application is set;
false
otherwisepublic boolean hasApplicationIcon()
true
if the URL for the (optional) application icon is set;
false
otherwisepublic boolean hasApplicationName()
true
if the application name is set; false
otherwisepublic boolean hasHomepage()
true
if the homepage URL is set; false
otherwisepublic boolean hasVendor()
true
if the vendor is set; false
otherwisepublic String homepage()
public String j2seVersion()
public String jarFileDownload()
public String jarFileMain()
null
by default).
See the Web Start and JNLP documentation for more information.public String jarFileName()
public NSArray jarFileNames()
jarFileNames
- the NSArray with the names of the jar files that Web Start should downloadpublic String jnlpURL()
public String mainArgument()
public NSArray mainArguments()
public String mainClass()
com.webobjects.eoapplication.client.EOClientApplicationSupport
.public boolean needsAllPermissions()
true
if the Java Client application needs all permissions;
false
otherwisepublic String page()
public void setAdditionalMainArguments(NSDictionary additionalMainArguments)
additionalMainArguments
- the NSDictionary with additional parameters for the main methodpublic void setApplicationDescription(String applicationDescription)
applicationDescription
- the string describing the applicationpublic void setApplicationIcon(String applicationIcon)
applicationIcon
- the URL for the (optional) application iconpublic void setApplicationName(String applicationName)
applicationName
- the application namepublic void setApplicationURL(String applicationURL)
applicationURL
- the application URL, usually dynamically derived
from the WebObjects application server base URLpublic void setChannelClassName(String channelClassName)
channelClassName
- the class name of the custom EODistributionChannel subclasspublic void setCodebase(String codebase)
codebase
- the codebase URLpublic void setHomepage(String homepage)
homepage
- the homepage URLpublic void setJarFileName(String name)
name
- the name of the current jar filepublic void setJarFileNames(NSArray jarFileNames)
jarFileNames
- the NSArray with the names of the jar files that Web Start should downloadpublic void setMainArgument(String name)
name
- the name of the current main argumentpublic void setNeedsAllPermissions(boolean flag)
flag
- true
if the Java Client application needs all permissions;
false
otherwisepublic void setPage(String page)
page
- the name of the WOJavaClientComponent's pagepublic void setVendor(String vendor)
vendor
- the vendor namepublic String vendor()
|
Last updated Fri Feb 21 13:15:00 PST 2003. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |