Class MessagesResourceResolver
java.lang.Object
org.broadleafcommerce.openadmin.web.resource.MessagesResourceResolver
- All Implemented Interfaces:
org.springframework.web.servlet.resource.ResourceResolver
@Component("blMessagesResourceResolver")
public class MessagesResourceResolver
extends Object
implements org.springframework.web.servlet.resource.ResourceResolver
Generated resource resolver for Admin Javascript Messages
- Author:
- Brandon Smith, Elbert Bautista (elbertbautista)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetResourceContents(org.springframework.core.io.Resource resource) protected StringreplaceResourceContents(String contents) org.springframework.core.io.ResourceresolveResource(jakarta.servlet.http.HttpServletRequest request, String path, List<? extends org.springframework.core.io.Resource> locations, org.springframework.web.servlet.resource.ResourceResolverChain chain) resolveUrlPath(String resourcePath, List<? extends org.springframework.core.io.Resource> locations, org.springframework.web.servlet.resource.ResourceResolverChain chain) protected org.springframework.core.io.ResourceupdateMessagesVariables(org.springframework.core.io.Resource resource, String path)
-
Field Details
-
MESSAGES_JS_PATH
- See Also:
-
OPEN_ADMIN_MESSAGES_PROPERTIES
- See Also:
-
-
Constructor Details
-
MessagesResourceResolver
public MessagesResourceResolver()
-
-
Method Details
-
resolveResource
public org.springframework.core.io.Resource resolveResource(jakarta.servlet.http.HttpServletRequest request, String path, List<? extends org.springframework.core.io.Resource> locations, org.springframework.web.servlet.resource.ResourceResolverChain chain) - Specified by:
resolveResourcein interfaceorg.springframework.web.servlet.resource.ResourceResolver
-
updateMessagesVariables
protected org.springframework.core.io.Resource updateMessagesVariables(org.springframework.core.io.Resource resource, String path) -
getResourceContents
protected String getResourceContents(org.springframework.core.io.Resource resource) throws IOException - Throws:
IOException
-
replaceResourceContents
- Throws:
IOException
-
resolveUrlPath
public String resolveUrlPath(String resourcePath, List<? extends org.springframework.core.io.Resource> locations, org.springframework.web.servlet.resource.ResourceResolverChain chain) - Specified by:
resolveUrlPathin interfaceorg.springframework.web.servlet.resource.ResourceResolver
-
getMessagesJsPath
-
getOpenAdminMessagesProperties
-