public class PwaRegistry extends Object implements Serializable
PwaConfiguration - basic info
PwaIcon:s - different sizes of icons for header and
manifest
| Modifier and Type | Field and Description |
|---|---|
static String |
WORKBOX_FOLDER |
| Modifier and Type | Method and Description |
|---|---|
List<PwaIcon> |
getHeaderIcons()
List of
PwaIcon:s that should be added to header. |
List<PwaIcon> |
getIcons()
List of all icons managed by
PwaRegistry. |
static List<PwaIcon> |
getIconTemplates(String baseName)
Gets all PWA icon variants for the give base icon.
|
String |
getInstallPrompt()
Html and js needed for pwa install prompt as a plain string.
|
static PwaRegistry |
getInstance(ServletContext servletContext)
Gets the pwa registry for the given servlet context.
|
List<PwaIcon> |
getManifestIcons()
List of
PwaIcon:s that should be added to manifest.webmanifest. |
String |
getManifestJson()
manifest.webmanifest contents as a String.
|
String |
getOfflineHtml()
Static offline page as String.
|
PwaConfiguration |
getPwaConfiguration() |
String |
getServiceWorkerJs()
sw.js (service worker javascript) as String.
|
String |
offlinePageCache()
Google Workbox cache resource String of offline page.
|
public static final String WORKBOX_FOLDER
public static PwaRegistry getInstance(ServletContext servletContext)
servletContext - the servlet context for which to get a route registry, not
nullnullpublic String getOfflineHtml()
public String getManifestJson()
public String getServiceWorkerJs()
public String offlinePageCache()
{url: 'offline.html', revision: '1234567'}public String getInstallPrompt()
public List<PwaIcon> getHeaderIcons()
PwaIcon:s that should be added to header.PwaIcon:s that should be added to headerpublic List<PwaIcon> getManifestIcons()
PwaIcon:s that should be added to manifest.webmanifest.PwaIcon:s that should be added to
manifest.webmanifestpublic List<PwaIcon> getIcons()
PwaRegistry.PwaRegistrypublic PwaConfiguration getPwaConfiguration()
Copyright © 2025. All rights reserved.