spring-framework / org.springframework.web.servlet.resource / ResourceTransformer / transform

transform

abstract fun transform(request: HttpServletRequest, resource: Resource, transformerChain: ResourceTransformerChain): Resource

Transform the given resource.

Parameters

request - the current request

resource - the resource to transform

transformerChain - the chain of remaining transformers to delegate to

Exceptions

IOException - if the transformation fails

Return
the transformed resource (never null)