Class Html

java.lang.Object
cool.scx.web.vo.Html
All Implemented Interfaces:
ScxConsumer<io.vertx.ext.web.RoutingContext,Exception>, BaseVo

public final class Html extends Object implements BaseVo
html 渲染类
Version:
0.3.6
Author:
scx567888
  • Method Details

    • of

      public static Html of(String htmlStr)
    • of

      public static Html of(Path htmlPath) throws IOException
      Throws:
      IOException
    • accept

      public void accept(io.vertx.ext.web.RoutingContext context) throws Exception
      Specified by:
      accept in interface ScxConsumer<io.vertx.ext.web.RoutingContext,Exception>
      Throws:
      Exception
    • sendHtmlStr

      public void sendHtmlStr(io.vertx.ext.web.RoutingContext context)
    • sendHtmlPath

      public void sendHtmlPath(io.vertx.ext.web.RoutingContext context)