Class Redirection

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

public final class Redirection extends Object implements BaseVo
重定向
Version:
1.11.8
Author:
scx567888
  • Method Details

    • ofPermanent

      public static Redirection ofPermanent(String location)
      永久重定向
      Parameters:
      location - 重定向地址
      Returns:
      r
    • ofTemporary

      public static Redirection ofTemporary(String location)
      临时重定向
      Parameters:
      location - 重定向地址
      Returns:
      r
    • accept

      public void accept(io.vertx.ext.web.RoutingContext routingContext)
      Specified by:
      accept in interface ScxConsumer<io.vertx.ext.web.RoutingContext,Exception>