Class GeneratedStaticResourceBuildItem
java.lang.Object
io.quarkus.builder.item.BuildItem
io.quarkus.builder.item.MultiBuildItem
io.quarkus.vertx.http.deployment.spi.GeneratedStaticResourceBuildItem
public final class GeneratedStaticResourceBuildItem
extends io.quarkus.builder.item.MultiBuildItem
This build item aims to be used by extensions to generate static resources.
Those resources will be served on the given
Behind the scenes the build step will take care of add those resources to the final build, through
The value of
Those resources will be served on the given
endpoint. It is NOT necessary to create
the
file on disk.
Behind the scenes the build step will take care of add those resources to the final build, through
AdditionalStaticResourceBuildItem, NativeImageResourceBuildItem
and GeneratedResourceBuildItem build items.
The value of
endpoint should be prefixed with '/'.-
Constructor Summary
ConstructorsConstructorDescriptionGeneratedStaticResourceBuildItem(String endpoint, byte[] content) The resource will be served at'{quarkus.http.root-path}{endpoint}'GeneratedStaticResourceBuildItem(String endpoint, Path file) The resource will be served at {root-path}{path} -
Method Summary
-
Constructor Details
-
GeneratedStaticResourceBuildItem
The resource will be served at'{quarkus.http.root-path}{endpoint}'- Parameters:
endpoint- the endpoint from the'{quarkus.http.root-path}'for this generated static resource. It should be prefixed with'/'content- the content of this generated static resource
-
GeneratedStaticResourceBuildItem
The resource will be served at {root-path}{path}- Parameters:
endpoint- the endpoint from the'{quarkus.http.root-path}'for this generated static resource. It should be prefixed with'/'file- the file Path on the local filesystem
-
-
Method Details
-
getEndpoint
-
isFile
public boolean isFile() -
getContent
public byte[] getContent() -
getFile
-
getFileAbsolutePath
-