Class IndexHtmlTransformer
java.lang.Object
org.tailormap.api.configuration.base.IndexHtmlTransformer
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.EnvironmentAware
,org.springframework.web.servlet.resource.ResourceTransformer
@Component
public class IndexHtmlTransformer
extends Object
implements org.springframework.web.servlet.resource.ResourceTransformer, org.springframework.context.EnvironmentAware
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setEnvironment
(org.springframework.core.env.Environment environment) org.springframework.core.io.Resource
transform
(jakarta.servlet.http.HttpServletRequest request, org.springframework.core.io.Resource resource, org.springframework.web.servlet.resource.ResourceTransformerChain transformerChain)
-
Constructor Details
-
IndexHtmlTransformer
public IndexHtmlTransformer()
-
-
Method Details
-
setEnvironment
public void setEnvironment(@NonNull org.springframework.core.env.Environment environment) - Specified by:
setEnvironment
in interfaceorg.springframework.context.EnvironmentAware
-
transform
@NonNull public org.springframework.core.io.Resource transform(@NonNull jakarta.servlet.http.HttpServletRequest request, @NonNull org.springframework.core.io.Resource resource, @NonNull org.springframework.web.servlet.resource.ResourceTransformerChain transformerChain) throws IOException - Specified by:
transform
in interfaceorg.springframework.web.servlet.resource.ResourceTransformer
- Throws:
IOException
-