Class CombinedWebJarResourcesFilter
- java.lang.Object
-
- io.quarkus.vertx.http.deployment.webjar.CombinedWebJarResourcesFilter
-
- All Implemented Interfaces:
WebJarResourcesFilter
public class CombinedWebJarResourcesFilter extends Object implements WebJarResourcesFilter
WebJarResourcesFilter which combines several other filters. Each filter gets called with the inputstream of the previous filter, or the original one if it is the first filter. Filters are processed in order.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.quarkus.vertx.http.deployment.webjar.WebJarResourcesFilter
WebJarResourcesFilter.FilterResult
-
-
Constructor Summary
Constructors Constructor Description CombinedWebJarResourcesFilter(List<WebJarResourcesFilter> filters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebJarResourcesFilter.FilterResultapply(String fileName, InputStream stream)Filter web jar resources.
-
-
-
Constructor Detail
-
CombinedWebJarResourcesFilter
public CombinedWebJarResourcesFilter(List<WebJarResourcesFilter> filters)
-
-
Method Detail
-
apply
public WebJarResourcesFilter.FilterResult apply(String fileName, InputStream stream) throws IOException
Description copied from interface:WebJarResourcesFilterFilter web jar resources. Can either update or not update the content of a web jars resource, or not include a resource at all.- Specified by:
applyin interfaceWebJarResourcesFilter- 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
-
-