Class QuinoaNetworkConfiguration

java.lang.Object
io.quarkiverse.quinoa.QuinoaNetworkConfiguration

public class QuinoaNetworkConfiguration extends Object
Represents the network configuration settings for Quinoa, including TLS options, host, port, and websocket settings.
  • Constructor Details

    • QuinoaNetworkConfiguration

      public QuinoaNetworkConfiguration(boolean tls, boolean tlsAllowInsecure, String host, Integer port, boolean websocket)
      Constructs a new QuinoaNetworkConfiguration with the specified settings.
      Parameters:
      tls - whether TLS is enabled
      tlsAllowInsecure - whether insecure TLS connections are allowed
      host - the hostname or IP address of the server
      port - the port number on which the server is listening
      websocket - whether websocket is enabled
  • Method Details

    • isTls

      public boolean isTls()
      Returns whether TLS is enabled.
      Returns:
      true if TLS is enabled, false otherwise
    • isTlsAllowInsecure

      public boolean isTlsAllowInsecure()
      Returns whether insecure TLS connections are allowed.
      Returns:
      true if insecure TLS connections are allowed, false otherwise
    • getHost

      public String getHost()
      Returns the hostname or IP address of the server.
      Returns:
      the host
    • setHost

      public void setHost(String host)
    • getPort

      public Integer getPort()
      Returns the port number on which the server is listening.
      Returns:
      the port number
    • setPort

      public void setPort(Integer port)
    • isWebsocket

      public boolean isWebsocket()
      Returns whether websocket is enabled.
      Returns:
      true if websocket is enabled, false otherwise
    • equals

      public boolean equals(Object o)
      Indicates whether some other object is "equal to" this one.
      Overrides:
      equals in class Object
      Parameters:
      o - the reference object with which to compare
      Returns:
      true if this object is the same as the obj argument; false otherwise
    • hashCode

      public int hashCode()
      Returns a hash code value for the object.
      Overrides:
      hashCode in class Object
      Returns:
      a hash code value for this object
    • toString

      public String toString()
      Returns a string representation of the object.
      Overrides:
      toString in class Object
      Returns:
      a string representation of the object