Class HttpSignalingSettings

java.lang.Object
org.cloudburstmc.netty.channel.nethernet.signaling.HttpSignalingSettings

public final class HttpSignalingSettings extends Object
How NetherNetHTTPClientSignaling reaches an endpoint. Immutable; DEFAULT does what the retail client does. Share one across connections: the HTTP client behind it is built once per settings object, and a signaling is made per connection.
  • Field Details

  • Method Details

    • scheme

    • iceServers

      public List<IceServerInfo> iceServers()
    • sslContext

      public @Nullable SSLContext sslContext()
      The trust HTTPS validates the server against, or null for the JDK default.
    • clientInfo

      public @Nullable ClientInfo clientInfo()
      What the probe tells the server about the client, or null to send nothing.
    • withScheme

    • withIceServers

      public HttpSignalingSettings withIceServers(Collection<IceServerInfo> iceServers)
      Parameters:
      iceServers - The STUN and TURN servers to gather through. Every one of them has to answer or time out before the offer can go, since nothing trickles after it
      Returns:
      The settings with those servers
    • withSslContext

      public HttpSignalingSettings withSslContext(SSLContext sslContext)
      Parameters:
      sslContext - The trust to validate the server's certificate with, for a private CA
      Returns:
      The settings with that trust
    • withClientInfo

      public HttpSignalingSettings withClientInfo(ClientInfo clientInfo)
      Tells the server about the client in the probe's query, as the retail client does.
      Parameters:
      clientInfo - What to tell it
      Returns:
      The settings with that client info