Class InsertVariablesResourcesFilter
java.lang.Object
io.quarkus.vertx.http.deployment.webjar.InsertVariablesResourcesFilter
- All Implemented Interfaces:
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
ConstructorsConstructorDescriptionInsertVariablesResourcesFilter(io.quarkus.runtime.ApplicationConfig applicationConfig, io.quarkus.maven.dependency.ResolvedDependency appArtifact) -
Method Summary
Modifier and TypeMethodDescriptionapply(String fileName, InputStream stream) Filter web jar resources.
-
Constructor Details
-
InsertVariablesResourcesFilter
public InsertVariablesResourcesFilter(io.quarkus.runtime.ApplicationConfig applicationConfig, io.quarkus.maven.dependency.ResolvedDependency appArtifact)
-
-
Method Details
-
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
-