Class InsertVariablesResourcesFilter
- java.lang.Object
-
- io.quarkus.vertx.http.deployment.webjar.InsertVariablesResourcesFilter
-
- All Implemented Interfaces:
WebJarResourcesFilter
public class InsertVariablesResourcesFilter extends Object implements WebJarResourcesFilter
Filter for inserting variables into an InputStream. Supported placeholders are:- {applicationName}
- {applicationVersion}
- {quarkusVersion}
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.quarkus.vertx.http.deployment.webjar.WebJarResourcesFilter
WebJarResourcesFilter.FilterResult
-
-
Constructor Summary
Constructors Constructor Description InsertVariablesResourcesFilter(io.quarkus.runtime.ApplicationConfig applicationConfig, io.quarkus.maven.dependency.ResolvedDependency appArtifact)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebJarResourcesFilter.FilterResultapply(String fileName, InputStream stream)Filter web jar resources.
-
-
-
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
-
-