use of org.glassfish.appclient.server.core.jws.servedcontent.FixedContent in project Payara by payara.
the class ApplicationSignedJARManager method developerSignedAppContentEntry.
private Map.Entry<URI, StaticContent> developerSignedAppContentEntry(URI absURIToFile) {
final URI jarURIRelativeToApp = EARDirectoryServerURI.relativize(absURIToFile);
StaticContent content = relURIToContent.get(absURIToFile);
if (content == null) {
content = new FixedContent(new File(absURIToFile));
relURIToContent.put(jarURIRelativeToApp, content);
}
return new AbstractMap.SimpleEntry<URI, StaticContent>(jarURIRelativeToApp, content);
}
use of org.glassfish.appclient.server.core.jws.servedcontent.FixedContent in project Payara by payara.
the class JavaWebStartInfo method addImageContentIfSpecified.
private void addImageContentIfSpecified(final String imageURIStringWithinAppClient, final String imageURIStringForJNLP, final Map<String, StaticContent> staticContent) {
if (imageURIStringWithinAppClient == null || imageURIStringWithinAppClient.length() == 0) {
return;
}
final URI absoluteImageURI = dc.getSource().getURI().resolve(imageURIStringWithinAppClient);
final File imageFile = new File(absoluteImageURI);
if (!imageFile.exists()) {
return;
}
staticContent.put(imageURIStringForJNLP, new FixedContent(imageFile));
}
Aggregations