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 -
Method Summary
Modifier and TypeMethodDescriptionname()voidstart(cool.scx.app.ScxApp scx) static voidstartRedirect(int port) 也可以直接以工具类的形式调用Methods inherited from class cool.scx.app.ScxAppModule
classList, rootPath, stop
-
Constructor Details
-
RedirectModule
public RedirectModule() -
RedirectModule
public RedirectModule(int port)
-
-
Method Details
-
startRedirect
public static void startRedirect(int port) 也可以直接以工具类的形式调用- Parameters:
port- a int
-
name
- Overrides:
namein classcool.scx.app.ScxAppModule
-
start
public void start(cool.scx.app.ScxApp scx) - Overrides:
startin classcool.scx.app.ScxAppModule
-