Class RedirectModule

java.lang.Object
cool.scx.app.ScxModule
cool.scx.app.x.redirect.RedirectModule

public class RedirectModule extends cool.scx.app.ScxModule
监听 80 端口并将所有 http 请求重定向 到 https
Version:
0.0.1
Author:
scx567888
  • Field Summary

    Fields inherited from class cool.scx.app.ScxModule

    classList, defaultName, rootPath
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    RedirectModule(int port)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
    start(cool.scx.app.Scx scx)
     
    static void
    startRedirect(int port)
    也可以直接以工具类的形式调用

    Methods inherited from class cool.scx.app.ScxModule

    classList, rootPath, stop

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RedirectModule

      public RedirectModule()
    • RedirectModule

      public RedirectModule(int port)
  • Method Details

    • startRedirect

      public static void startRedirect(int port)
      也可以直接以工具类的形式调用
      Parameters:
      port - a int
    • name

      public String name()
      Overrides:
      name in class cool.scx.app.ScxModule
    • start

      public void start(cool.scx.app.Scx scx)
      Overrides:
      start in class cool.scx.app.ScxModule