Module swim.io
Package swim.io

Class IpSettings

java.lang.Object
swim.io.IpSettings
All Implemented Interfaces:
Debug

public class IpSettings extends Object implements Debug
IP Socket configuration parameters.
  • Field Details

  • Constructor Details

  • Method Details

    • tcpSettings

      public TcpSettings tcpSettings()
      Returns the TCP socket configuration.
    • tcpSettings

      public IpSettings tcpSettings(TcpSettings tcpSettings)
      Returns a copy of these IpSettings configured with the given tcpSettings.
    • tlsSettings

      public TlsSettings tlsSettings()
      Returns the TLS socket configuration.
    • tlsSettings

      public IpSettings tlsSettings(TlsSettings tlsSettings)
      Returns a copy of these IpSettings configured with the given tlsSettings.
    • copy

      protected IpSettings copy(TcpSettings tcpSettings, TlsSettings tlsSettings)
      Returns a new IpSettings instance with the given options. Subclasses may override this method to ensure the proper class is instantiated when updating settings.
    • configure

      public void configure(Socket socket) throws SocketException
      Configures the socket with these IpSettings.
      Throws:
      SocketException
    • toValue

      public Value toValue()
      Returns a structural Value representing these IpSettings.
    • canEqual

      public boolean canEqual(Object other)
      Returns true if these IpSettings can possibly equal some other object.
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • debug

      public <T> Output<T> debug(Output<T> output)
      Description copied from interface: Debug
      Writes a developer readable, debug-formatted string representation of this object to output.
      Specified by:
      debug in interface Debug
      Returns:
      the continuation of the output.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • standard

      public static IpSettings standard()
      Returns the default IpSettings instance.
    • create

      public static IpSettings create(TcpSettings tcpSettings)
    • create

      public static IpSettings create(TlsSettings tlsSettings)
    • form

      @Kind public static Form<IpSettings> form()
      Returns the structural Form of IpSettings.