Class Html

java.lang.Object
cool.scx.web.vo.Html
All Implemented Interfaces:
cool.scx.function.Function1Void<cool.scx.http.routing.RoutingContext, Exception>, BaseVo

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

    • of

      public static Html of(String htmlStr)
    • of

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

      public void apply(cool.scx.http.routing.RoutingContext context) throws Exception
      Specified by:
      apply in interface cool.scx.function.Function1Void<cool.scx.http.routing.RoutingContext, Exception>
      Throws:
      Exception
    • sendHtmlStr

      public void sendHtmlStr(cool.scx.http.routing.RoutingContext context)
    • sendHtmlPath

      public void sendHtmlPath(cool.scx.http.routing.RoutingContext context)