Class WebJarStaticHandler
java.lang.Object
io.quarkus.vertx.http.runtime.webjar.WebJarStaticHandler
- All Implemented Interfaces:
io.vertx.core.Handler<io.vertx.ext.web.RoutingContext>
,Closeable
,AutoCloseable
public class WebJarStaticHandler
extends Object
implements io.vertx.core.Handler<io.vertx.ext.web.RoutingContext>, Closeable
Static handler for webjars. Delegates to either Vert.x @
StaticHandler
if finalDestination starts with
META-INF, or otherwise to @FileSystemStaticHandler
.-
Constructor Summary
ConstructorDescriptionWebJarStaticHandler
(String finalDestination, String path, List<FileSystemStaticHandler.StaticWebRootConfiguration> webRootConfigurations) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
getPath()
void
handle
(io.vertx.ext.web.RoutingContext event) void
setFinalDestination
(String finalDestination) void
void
setWebRootConfigurations
(List<FileSystemStaticHandler.StaticWebRootConfiguration> webRootConfigurations)
-
Constructor Details
-
WebJarStaticHandler
public WebJarStaticHandler() -
WebJarStaticHandler
public WebJarStaticHandler(String finalDestination, String path, List<FileSystemStaticHandler.StaticWebRootConfiguration> webRootConfigurations)
-
-
Method Details
-
getFinalDestination
-
setFinalDestination
-
getPath
-
setPath
-
getWebRootConfigurations
-
setWebRootConfigurations
public void setWebRootConfigurations(List<FileSystemStaticHandler.StaticWebRootConfiguration> webRootConfigurations) -
handle
public void handle(io.vertx.ext.web.RoutingContext event) - Specified by:
handle
in interfaceio.vertx.core.Handler<io.vertx.ext.web.RoutingContext>
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-