Class JavaWebStartInfo
- java.lang.Object
-
- org.glassfish.appclient.server.core.jws.JavaWebStartInfo
-
- All Implemented Interfaces:
ConfigListener
@Service @PerLookup public class JavaWebStartInfo extends Object implements ConfigListener
Encapsulates information related to Java Web Start support for a single app client.The AppClientServerApplication creates one instance of this class for each app client that is deployed - either standalone or as part of an EAR.
- Author:
- tjquinn
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJavaWebStartInfo.VendorInfo
-
Field Summary
Fields Modifier and Type Field Description static StringAPP_LIBRARY_EXTENSION_PROPERTY_NAMEstatic StringAPPCLIENT_SERVER_LOGMESSAGE_RESOURCEstatic StringAPPCLIENT_SERVER_MAIN_LOGGERstatic StringDEVELOPER_EXTENSION_DOCUMENT_TEMPLATEstatic StringDOC_TEMPLATE_PREFIXstatic StringJWS_DISABLEDstatic StringJWS_INELIGIBLEstatic StringJWS_STARTEDstatic StringJWS_STOPPED
-
Constructor Summary
Constructors Constructor Description JavaWebStartInfo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UnprocessedChangeEventschanged(PropertyChangeEvent[] events)Notification that @Configured objects that were injected have changedstatic voidcreateAndAddDynamicContent(TokenHelper tHelper, Map<String,DynamicContent> content, String uriStringForContent, String uriStringForTemplate)voidinit(AppClientServerApplication acServerApp)Completes initialization of the object.static URIrelativeURIForProvidedOrGeneratedAppFile(DeploymentContext dc, URI absURI, AppClientDeployerHelper helper)voidresume()Resumes Java Web Start services for this client.FilesignedFileForProvidedAppFile(File unsignedFile)static FilesignedFileForProvidedAppFile(URI relURI, File unsignedFile, AppClientDeployerHelper helper, DeploymentContext dc)voidstart()Starts Java Web Start services for this client, if the client is eligible (as decided by the developer) and enabled (as decided by the administrator).voidstop()Stops Java Web Start services for this client.voidsuspend()Suspends Java Web Start services for this client.static StringtextFromURL(String templateURLString)
-
-
-
Field Detail
-
APPCLIENT_SERVER_LOGMESSAGE_RESOURCE
public static final String APPCLIENT_SERVER_LOGMESSAGE_RESOURCE
- See Also:
- Constant Field Values
-
APPCLIENT_SERVER_MAIN_LOGGER
public static final String APPCLIENT_SERVER_MAIN_LOGGER
- See Also:
- Constant Field Values
-
JWS_STARTED
public static final String JWS_STARTED
- See Also:
- Constant Field Values
-
JWS_STOPPED
public static final String JWS_STOPPED
- See Also:
- Constant Field Values
-
JWS_INELIGIBLE
public static final String JWS_INELIGIBLE
- See Also:
- Constant Field Values
-
JWS_DISABLED
public static final String JWS_DISABLED
- See Also:
- Constant Field Values
-
DOC_TEMPLATE_PREFIX
public static final String DOC_TEMPLATE_PREFIX
- See Also:
- Constant Field Values
-
DEVELOPER_EXTENSION_DOCUMENT_TEMPLATE
public static final String DEVELOPER_EXTENSION_DOCUMENT_TEMPLATE
- See Also:
- Constant Field Values
-
APP_LIBRARY_EXTENSION_PROPERTY_NAME
public static final String APP_LIBRARY_EXTENSION_PROPERTY_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init(AppClientServerApplication acServerApp)
Completes initialization of the object. Should be invoked immediate after the object is created by the habitat.- Parameters:
acServerApp- the per-client AppClientServerApplication object for the client of interest
-
start
public void start()
Starts Java Web Start services for this client, if the client is eligible (as decided by the developer) and enabled (as decided by the administrator).
-
stop
public void stop()
Stops Java Web Start services for this client.
-
suspend
public void suspend()
Suspends Java Web Start services for this client.
-
resume
public void resume()
Resumes Java Web Start services for this client.
-
relativeURIForProvidedOrGeneratedAppFile
public static URI relativeURIForProvidedOrGeneratedAppFile(DeploymentContext dc, URI absURI, AppClientDeployerHelper helper)
-
signedFileForProvidedAppFile
public static File signedFileForProvidedAppFile(URI relURI, File unsignedFile, AppClientDeployerHelper helper, DeploymentContext dc)
-
createAndAddDynamicContent
public static void createAndAddDynamicContent(TokenHelper tHelper, Map<String,DynamicContent> content, String uriStringForContent, String uriStringForTemplate) throws IOException
- Throws:
IOException
-
changed
public UnprocessedChangeEvents changed(PropertyChangeEvent[] events)
Description copied from interface:ConfigListenerNotification that @Configured objects that were injected have changed- Specified by:
changedin interfaceConfigListener- Parameters:
events- list of changes- Returns:
- the list of unprocessed events (requiring a restart) or null if all reconfiguration was processed successfully
-
textFromURL
public static String textFromURL(String templateURLString) throws IOException
- Throws:
IOException
-
-