Class NPMResolvedPackageNameUtil
java.lang.Object
com.liferay.frontend.js.loader.modules.extender.npm.NPMResolvedPackageNameUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringget(javax.servlet.http.HttpServletRequest httpServletRequest) Get the NPM resolved package name associated to the current portlet.static Stringget(javax.servlet.ServletContext servletContext) Get the NPM resolved package name associated to the bundle containing the given servlet context.static void
-
Constructor Details
-
NPMResolvedPackageNameUtil
public NPMResolvedPackageNameUtil()
-
-
Method Details
-
get
Get the NPM resolved package name associated to the current portlet. The current portlet is inferred from the portletResource parameter or theServletContextassociated to the given request.- Parameters:
httpServletRequest-- Throws:
UnsupportedOperationException- if the associated bundle does not contain AMD modules
-
get
Get the NPM resolved package name associated to the bundle containing the given servlet context.- Parameters:
servletContext-- Throws:
UnsupportedOperationException- if the associated bundle does not contain AMD modules
-
set
-