public class NPMResolvedPackageNameUtil
extends java.lang.Object
Constructor and Description |
---|
NPMResolvedPackageNameUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
get(javax.servlet.http.HttpServletRequest httpServletRequest)
Get the NPM resolved package name associated to the current portlet.
|
static java.lang.String |
get(javax.servlet.ServletContext servletContext)
Get the NPM resolved package name associated to the bundle containing the
given servlet context.
|
static void |
set(javax.servlet.ServletContext servletContext,
java.lang.String npmResolvedPackageName) |
public static java.lang.String get(javax.servlet.http.HttpServletRequest httpServletRequest)
ServletContext
associated to the given request.httpServletRequest
- java.lang.UnsupportedOperationException
- if the associated bundle does not contain AMD modulespublic static java.lang.String get(javax.servlet.ServletContext servletContext)
servletContext
- java.lang.UnsupportedOperationException
- if the associated bundle does not contain AMD modulespublic static void set(javax.servlet.ServletContext servletContext, java.lang.String npmResolvedPackageName)