org.springframework.web.servlet.resource

Interface ResourceTransformer

    • Method Detail

      • transform

        Resource transform(HttpServletRequest request,
                           Resource resource,
                           ResourceTransformerChain transformerChain)
                    throws java.io.IOException
        Transform the given resource.
        Parameters:
        request - the current request
        resource - the resource to transform
        transformerChain - the chain of remaining transformers to delegate to
        Returns:
        the transformed resource (never null)
        Throws:
        java.io.IOException - if the transformation fails