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
ConstructorsConstructorDescriptionWebJarStaticHandler(String finalDestination, String path, List<FileSystemStaticHandler.StaticWebRootConfiguration> webRootConfigurations) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()getPath()voidhandle(io.vertx.ext.web.RoutingContext event) voidsetFinalDestination(String finalDestination) voidvoidsetWebRootConfigurations(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:
handlein interfaceio.vertx.core.Handler<io.vertx.ext.web.RoutingContext>
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-