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 class
JavaWebStartInfo.VendorInfo
-
Field Summary
Fields Modifier and Type Field Description static String
APP_LIBRARY_EXTENSION_PROPERTY_NAME
static String
APPCLIENT_SERVER_LOGMESSAGE_RESOURCE
static String
APPCLIENT_SERVER_MAIN_LOGGER
static String
DEVELOPER_EXTENSION_DOCUMENT_TEMPLATE
static String
DOC_TEMPLATE_PREFIX
static String
JWS_DISABLED
static String
JWS_INELIGIBLE
static String
JWS_STARTED
static String
JWS_STOPPED
-
Constructor Summary
Constructors Constructor Description JavaWebStartInfo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UnprocessedChangeEvents
changed(PropertyChangeEvent[] events)
Notification that @Configured objects that were injected have changedstatic void
createAndAddDynamicContent(TokenHelper tHelper, Map<String,DynamicContent> content, String uriStringForContent, String uriStringForTemplate)
void
init(AppClientServerApplication acServerApp)
Completes initialization of the object.static URI
relativeURIForProvidedOrGeneratedAppFile(DeploymentContext dc, URI absURI, AppClientDeployerHelper helper)
void
resume()
Resumes Java Web Start services for this client.File
signedFileForProvidedAppFile(File unsignedFile)
static File
signedFileForProvidedAppFile(URI relURI, File unsignedFile, AppClientDeployerHelper helper, DeploymentContext dc)
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).void
stop()
Stops Java Web Start services for this client.void
suspend()
Suspends Java Web Start services for this client.static String
textFromURL(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:ConfigListener
Notification that @Configured objects that were injected have changed- Specified by:
changed
in 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
-
-