Interface WebJarResourcesFilter
-
- All Known Implementing Classes:
CombinedWebJarResourcesFilter,InsertVariablesResourcesFilter
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface WebJarResourcesFilter
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classWebJarResourcesFilter.FilterResult
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description WebJarResourcesFilter.FilterResultapply(String fileName, InputStream stream)Filter web jar resources.
-
-
-
Method Detail
-
apply
WebJarResourcesFilter.FilterResult apply(String fileName, InputStream stream) throws IOException
Filter web jar resources. Can either update or not update the content of a web jars resource, or not include a resource at all.- Parameters:
fileName- path and name of the resource inside the webjar, starting from the webJarRoot.stream- current resource content, might be null- Returns:
- a FilterResult, never null
- Throws:
IOException
-
-