Class JettyWebserver

java.lang.Object
com.djrapitops.plan.delivery.webserver.http.JettyWebserver
All Implemented Interfaces:
WebServer, SubSystem

@Singleton public class JettyWebserver extends Object implements WebServer
  • Constructor Details

  • Method Details

    • isEnableRateLimiting

      public static boolean isEnableRateLimiting()
    • setEnableRateLimiting

      @VisibleForTesting public static void setEnableRateLimiting(boolean enableRateLimiting)
    • enable

      public void enable()
      Description copied from interface: SubSystem
      Performs enable actions for the subsystem.
      Specified by:
      enable in interface SubSystem
      Specified by:
      enable in interface WebServer
    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface WebServer
    • disable

      public void disable()
      Description copied from interface: SubSystem
      Performs disable actions for the subsystem
      Specified by:
      disable in interface SubSystem
      Specified by:
      disable in interface WebServer
    • getProtocol

      public String getProtocol()
      Specified by:
      getProtocol in interface WebServer
    • isUsingHTTPS

      public boolean isUsingHTTPS()
      Specified by:
      isUsingHTTPS in interface WebServer
    • isAuthRequired

      public boolean isAuthRequired()
      Specified by:
      isAuthRequired in interface WebServer
    • getPort

      public int getPort()
      Specified by:
      getPort in interface WebServer