Package io.quarkiverse.quinoa
Class QuinoaNetworkConfiguration
java.lang.Object
io.quarkiverse.quinoa.QuinoaNetworkConfiguration
Represents the network configuration settings for Quinoa,
including TLS options, host, port, and websocket settings.
-
Constructor Summary
ConstructorsConstructorDescriptionQuinoaNetworkConfiguration(boolean tls, boolean tlsAllowInsecure, String host, Integer port, boolean websocket) Constructs a newQuinoaNetworkConfigurationwith the specified settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.getHost()Returns the hostname or IP address of the server.getPort()Returns the port number on which the server is listening.inthashCode()Returns a hash code value for the object.booleanisTls()Returns whether TLS is enabled.booleanReturns whether insecure TLS connections are allowed.booleanReturns whether websocket is enabled.voidvoidtoString()Returns a string representation of the object.
-
Constructor Details
-
QuinoaNetworkConfiguration
public QuinoaNetworkConfiguration(boolean tls, boolean tlsAllowInsecure, String host, Integer port, boolean websocket) Constructs a newQuinoaNetworkConfigurationwith the specified settings.- Parameters:
tls- whether TLS is enabledtlsAllowInsecure- whether insecure TLS connections are allowedhost- the hostname or IP address of the serverport- the port number on which the server is listeningwebsocket- whether websocket is enabled
-
-
Method Details
-
isTls
public boolean isTls()Returns whether TLS is enabled.- Returns:
trueif TLS is enabled,falseotherwise
-
isTlsAllowInsecure
public boolean isTlsAllowInsecure()Returns whether insecure TLS connections are allowed.- Returns:
trueif insecure TLS connections are allowed,falseotherwise
-
getHost
Returns the hostname or IP address of the server.- Returns:
- the host
-
setHost
-
getPort
Returns the port number on which the server is listening.- Returns:
- the port number
-
setPort
-
isWebsocket
public boolean isWebsocket()Returns whether websocket is enabled.- Returns:
trueif websocket is enabled,falseotherwise
-
equals
Indicates whether some other object is "equal to" this one. -
hashCode
public int hashCode()Returns a hash code value for the object. -
toString
Returns a string representation of the object.
-