Class RedirectModule

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

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

    Fields inherited from class cool.scx.app.ScxAppModule

    classList, defaultName, rootPath
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    RedirectModule(int port)
     
  • Method Summary

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

    Methods inherited from class cool.scx.app.ScxAppModule

    classList, rootPath, stop

    Methods inherited from class 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.ScxAppModule
    • start

      public void start(cool.scx.app.ScxApp scx)
      Overrides:
      start in class cool.scx.app.ScxAppModule