Search in sources :

Example 1 with Extension

use of org.glassfish.appclient.server.core.jws.ExtensionFileManager.Extension in project Payara by payara.

the class JavaWebStartInfo method processExtensionReferences.

private void processExtensionReferences() throws IOException {
    // TODO: needs to be expanded to handle signed library JARS, perhap signed by different certs
    final URI fileURI = URI.create("file:" + helper.appClientServerOriginalAnchor(dc).getRawSchemeSpecificPart());
    Set<Extension> exts = extensionFileManager.findExtensionTransitiveClosure(new File(fileURI), // new File(helper.appClientServerURI(dc)).getParentFile(),
    dc.getSource().getManifest().getMainAttributes());
    tHelper.setProperty(APP_LIBRARY_EXTENSION_PROPERTY_NAME, jarElementsForExtensions(exts));
    for (Extension e : exts) {
        final URI uri = URI.create(JWSAdapterManager.publicExtensionLookupURIText(e));
        final StaticContent newSystemContent = createSignedStaticContent(e.getFile(), signedFileForDomainFile(e.getFile()), uri, extensionName(e.getFile()));
        jwsAdapterManager.addStaticSystemContent(uri.toString(), newSystemContent);
    }
}
Also used : Extension(org.glassfish.appclient.server.core.jws.ExtensionFileManager.Extension) StreamedAutoSignedStaticContent(org.glassfish.appclient.server.core.jws.servedcontent.StreamedAutoSignedStaticContent) StaticContent(org.glassfish.appclient.server.core.jws.servedcontent.StaticContent) URI(java.net.URI) JarFile(java.util.jar.JarFile) File(java.io.File)

Aggregations

File (java.io.File)1 URI (java.net.URI)1 JarFile (java.util.jar.JarFile)1 Extension (org.glassfish.appclient.server.core.jws.ExtensionFileManager.Extension)1 StaticContent (org.glassfish.appclient.server.core.jws.servedcontent.StaticContent)1 StreamedAutoSignedStaticContent (org.glassfish.appclient.server.core.jws.servedcontent.StreamedAutoSignedStaticContent)1