Package com.iizix.comm
Class PortConfig
- java.lang.Object
- com.iizix.comm.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 Type Field Description java.lang.String
bind
The bind address, null for none.IPortController
controller
Interface for the port control, never null.boolean
isFrontEndSecured
Flag for secure port by means of front-end proxy, even if theisHTTPS
flag is false.boolean
isHTTPS
Flag for HTTPS.int
port
The port number, zero for none.
Constructor Summary
Constructors Constructor Description PortConfig(int port, boolean isHTTPS, boolean isFrontEndSecured, java.lang.String bind, IPortController controller)
Constructor.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
restartConnector()
Restarts the Jetty (HTTPS) server connector after Let's Encrypt domain certificate renewal.
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 theisHTTPS
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 theisHTTPS
flag is false.bind
- The bind address, null for none.controller
- The port controller, never null.