Class PortConfig


  • public class PortConfig
    extends java.lang.Object
    Input-output class used to hold information of the started port of a category. It is used to configure the external host name if undefined.
    Author:
    Christopher Mindus
    • Field Summary

      Fields 
      Modifier and TypeFieldDescription
      java.lang.Stringbind
      The bind address, null for none.
      IPortControllercontroller
      Interface for the port control, never null.
      booleanisFrontEndSecured
      Flag for secure port by means of front-end proxy, even if the isHTTPS flag is false.
      booleanisHTTPS
      Flag for HTTPS.
      intport
      The port number, zero for none.
    • Constructor Summary

      Constructors 
      ConstructorDescription
      PortConfig​(int port, boolean isHTTPS, boolean isFrontEndSecured, java.lang.String bind, IPortController controller)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      voidrestartConnector()
      Restarts the Jetty (HTTPS) server connector after Let's Encrypt domain certificate renewal.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • port

        public final int port
        The port number, zero for none.
      • isHTTPS

        public final boolean isHTTPS
        Flag for HTTPS.
      • isFrontEndSecured

        public final boolean isFrontEndSecured
        Flag for secure port by means of front-end proxy, even if the isHTTPS flag is false.
      • bind

        public final java.lang.String bind
        The bind address, null for none.
      • controller

        public final IPortController controller
        Interface for the port control, never null.
    • Constructor Detail

      • PortConfig

        public PortConfig​(int port,
                          boolean isHTTPS,
                          boolean isFrontEndSecured,
                          java.lang.String bind,
                          IPortController controller)
        Constructor.
        Parameters:
        port - The port number, zero for none.
        isHTTPS - Flag for HTTPS.
        isFrontEndSecured - Flag for secure port by means of front-end proxy, even if the isHTTPS flag is false.
        bind - The bind address, null for none.
        controller - The port controller, never null.
    • Method Detail

      • restartConnector

        public void restartConnector()
        Restarts the Jetty (HTTPS) server connector after Let's Encrypt domain certificate renewal.