public class ApplicationSignedJARManager extends Object
A client class should instantiate the manager, then invoke addJar any number of times, then invoke aliasToContent to retrieve the map from each alias to the corresponding (relativeURI, StaticContent) pair.
If an added JAR is already signed by the developer we do not sign it again, but simply add it to the data structures. If an added JAR is not signed we arrange for it to be auto-signed and the signed version will be the one served to Java Web Start requests.
Constructor and Description |
---|
ApplicationSignedJARManager(String autoSigningAlias,
ASJarSigner jarSigner,
org.glassfish.hk2.api.ServiceLocator habitat,
DeploymentContext dc,
AppClientDeployerHelper helper,
URI EARDirectoryServerURI,
URI EARDirectoryUserURI) |
Modifier and Type | Method and Description |
---|---|
URI |
addJAR(URI absJARURI)
Adds a JAR to the manager, returning the URI for the file to be served.
|
URI |
addJAR(URI uriWithinAnchor,
URI absJARURI)
Adds a JAR to the manager, returning the URI to the file to be
served.
|
Map<String,Map<URI,StaticContent>> |
aliasToContent() |
StaticContent |
staticContent(URI jarURIRelativeToApp) |
public ApplicationSignedJARManager(String autoSigningAlias, ASJarSigner jarSigner, org.glassfish.hk2.api.ServiceLocator habitat, DeploymentContext dc, AppClientDeployerHelper helper, URI EARDirectoryServerURI, URI EARDirectoryUserURI)
public URI addJAR(URI absJARURI) throws IOException
absJARURI
- absolute URI of the unsigned file.IOException
public URI addJAR(URI uriWithinAnchor, URI absJARURI) throws IOException
uriWithinAnchor
- relative URI to the JAR within the anchor directory for the appjarURI
- URI to the JAR file in the app to be servedIOException
public Map<String,Map<URI,StaticContent>> aliasToContent()
public StaticContent staticContent(URI jarURIRelativeToApp)
Copyright © 2019. All rights reserved.