Class WebServer
java.lang.Object
com.djrapitops.plan.delivery.webserver.WebServer
- All Implemented Interfaces:
SubSystem
-
Constructor Summary
ConstructorDescriptionWebServer
(Locale locale, PlanFiles files, PlanConfig config, Addresses addresses, net.playeranalytics.plugin.server.PluginLogger logger, ErrorLogger errorLogger, RequestHandler requestHandler) -
Method Summary
-
Constructor Details
-
WebServer
@Inject public WebServer(Locale locale, PlanFiles files, PlanConfig config, Addresses addresses, net.playeranalytics.plugin.server.PluginLogger logger, ErrorLogger errorLogger, RequestHandler requestHandler)
-
-
Method Details
-
enable
public void enable()Description copied from interface:SubSystem
Performs enable actions for the subsystem. -
isEnabled
public boolean isEnabled()- Returns:
- if the WebServer is enabled
-
disable
public void disable()Shuts down the server - Async thread is closed with shutdown boolean. -
getProtocol
-
isUsingHTTPS
public boolean isUsingHTTPS() -
isAuthRequired
public boolean isAuthRequired() -
getPort
public int getPort()
-