Class WebServer
- java.lang.Object
-
- com.djrapitops.plan.delivery.webserver.WebServer
-
-
Constructor Summary
Constructors Constructor Description WebServer(Locale locale, PlanFiles files, PlanConfig config, Addresses addresses, net.playeranalytics.plugin.server.PluginLogger logger, ErrorLogger errorLogger, RequestHandler requestHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
disable()
Shuts down the server - Async thread is closed with shutdown boolean.void
enable()
Performs enable actions for the subsystem.int
getPort()
java.lang.String
getProtocol()
boolean
isAuthRequired()
boolean
isEnabled()
boolean
isUsingHTTPS()
-
-
-
Constructor Detail
-
WebServer
@Inject public WebServer(Locale locale, PlanFiles files, PlanConfig config, Addresses addresses, net.playeranalytics.plugin.server.PluginLogger logger, ErrorLogger errorLogger, RequestHandler requestHandler)
-
-
Method Detail
-
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
public java.lang.String getProtocol()
-
isUsingHTTPS
public boolean isUsingHTTPS()
-
isAuthRequired
public boolean isAuthRequired()
-
getPort
public int getPort()
-
-