程序包 cool.scx.mvc.vo

接口 BaseVo

所有超级接口:
ScxConsumer<io.vertx.ext.web.RoutingContext,Exception>
所有已知实现类:
Download, Image, Json, Raw, Redirections, Result, Result.ResultOfData, Result.ResultOfMap, Xml

public interface BaseVo extends ScxConsumer<io.vertx.ext.web.RoutingContext,Exception>
BaseVo 接口 所有需要向前台返回数据都需要继承
版本:
0.5.0
作者:
scx567888
  • 方法概要

    静态方法
    修饰符和类型
    方法
    说明
    static io.vertx.core.http.HttpServerResponse
    fillContentType(MediaType contentType, io.vertx.core.http.HttpServerResponse response)
    填充 ContentType a
    static io.vertx.core.http.HttpServerResponse
    fillHtmlContentType(io.vertx.core.http.HttpServerResponse response)
    a
    static io.vertx.core.http.HttpServerResponse
    fillJsonContentType(io.vertx.core.http.HttpServerResponse response)
    填充 CONTENT_TYPE 为 json 格式
    static io.vertx.core.http.HttpServerResponse
    fillTextPlainContentType(io.vertx.core.http.HttpServerResponse response)
    a
    static io.vertx.core.http.HttpServerResponse
    fillXmlContentType(io.vertx.core.http.HttpServerResponse response)
    填充 CONTENT_TYPE 为 xml 格式

    从接口继承的方法 cool.scx.functional.ScxConsumer

    accept
  • 方法详细资料

    • fillContentType

      static io.vertx.core.http.HttpServerResponse fillContentType(MediaType contentType, io.vertx.core.http.HttpServerResponse response)
      填充 ContentType a
      参数:
      contentType - a
      response - a
      返回:
      a
    • fillJsonContentType

      static io.vertx.core.http.HttpServerResponse fillJsonContentType(io.vertx.core.http.HttpServerResponse response)
      填充 CONTENT_TYPE 为 json 格式
      参数:
      response - r
      返回:
      r
    • fillXmlContentType

      static io.vertx.core.http.HttpServerResponse fillXmlContentType(io.vertx.core.http.HttpServerResponse response)
      填充 CONTENT_TYPE 为 xml 格式
      参数:
      response - r
      返回:
      r
    • fillHtmlContentType

      static io.vertx.core.http.HttpServerResponse fillHtmlContentType(io.vertx.core.http.HttpServerResponse response)
      a
      参数:
      response - a
      返回:
      a
    • fillTextPlainContentType

      static io.vertx.core.http.HttpServerResponse fillTextPlainContentType(io.vertx.core.http.HttpServerResponse response)
      a
      参数:
      response - a
      返回:
      a