Package com.iizix.comm
Class PortConfig
java.lang.Object
com.iizix.comm.PortConfig
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 SummaryFieldsModifier and TypeFieldDescription- final StringThe bind address,- nullfor none.- final IPortControllerInterface for the port control, never null.- final booleanFlag for secure port by means of front-end proxy, even if the- isHTTPSflag is false.- final booleanFlag for HTTPS.- final intThe port number, zero for none.
- Constructor SummaryConstructorsConstructorDescription- PortConfig- (int port, boolean isHTTPS, boolean isFrontEndSecured, String bind, IPortController controller) Constructor.
- Method SummaryModifier and TypeMethodDescription- boolean- isSamePortConfig- (PortConfig portConfig) Checks if two port configurations are equal: i.e.- voidRestarts the Jetty (HTTPS) server connector after Let's Encrypt domain certificate renewal.
- Field Details- portpublic final int portThe port number, zero for none.
- isHTTPSpublic final boolean isHTTPSFlag for HTTPS.
- isFrontEndSecuredpublic final boolean isFrontEndSecuredFlag for secure port by means of front-end proxy, even if the- isHTTPSflag is false.
- bindThe bind address,- nullfor none.
- controllerInterface for the port control, never null.
 
- Constructor Details- PortConfigpublic PortConfig- (int port, boolean isHTTPS, boolean isFrontEndSecured, 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- isHTTPSflag is false.
- bind- The bind address, null for none.
- controller- The port controller, never null.
 
 
- Method Details- restartConnectorpublic void restartConnector()Restarts the Jetty (HTTPS) server connector after Let's Encrypt domain certificate renewal.
- isSamePortConfigChecks if two port configurations are equal: i.e. the same bind address (or none), the port number, front-end secured.- Parameters:
- portConfig- Another port configuration.
- Returns:
- trueif the port configurations match,- falseotherwise.