public class ResourceChecksumCalculator extends Object implements org.springframework.context.ApplicationListener<JahiaTemplateManagerService.TemplatePackageRedeployedEvent>
| Constructor and Description |
|---|
ResourceChecksumCalculator() |
| Modifier and Type | Method and Description |
|---|---|
void |
calculateChecksum(javax.servlet.http.HttpServletRequest request,
String ctx,
String resourcePath)
Calculates the checksum for the specified resource and sets it as a request attribute.
|
static void |
flushChecksumCache()
Flushes internal checksum cache for resources.
|
void |
onApplicationEvent(JahiaTemplateManagerService.TemplatePackageRedeployedEvent event) |
public static void flushChecksumCache()
public void calculateChecksum(javax.servlet.http.HttpServletRequest request,
String ctx,
String resourcePath)
request - the current requestctx - current request contextresourcePath - the resource path to calculate checksum forpublic void onApplicationEvent(JahiaTemplateManagerService.TemplatePackageRedeployedEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListener<JahiaTemplateManagerService.TemplatePackageRedeployedEvent>Copyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.