Module swim.io.http
Package swim.io.http

Class HttpSettings

java.lang.Object
swim.io.http.HttpSettings
All Implemented Interfaces:
Debug

public class HttpSettings extends Object implements Debug
HTTP configuration parameters.
  • Field Details

    • ipSettings

      protected final IpSettings ipSettings
    • maxMessageSize

      protected final int maxMessageSize
  • Constructor Details

    • HttpSettings

      public HttpSettings(IpSettings ipSettings, int maxMessageSize)
  • Method Details

    • ipSettings

      public final IpSettings ipSettings()
      Returns the socket configuration.
    • ipSettings

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

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

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

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

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

      public int maxMessageSize()
      Returns the maximum size in bytes on the wire of an HTTP request or response message + payload.
    • maxMessageSize

      public HttpSettings maxMessageSize(int maxMessageSize)
      Returns a copy of these HttpSettings configured with the given maxMessageSize limit on HTTP message + payload sizes.
    • copy

      protected HttpSettings copy(IpSettings ipSettings, int maxMessageSize)
      Returns a new HttpSettings instance with the given options. Subclasses may override this method to ensure the proper class is instantiated when updating settings.
    • toValue

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

      public boolean canEqual(Object other)
      Returns true if these HttpSettings 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 HttpSettings standard()
      Returns the default HttpSettings instance.
    • create

      public static HttpSettings create(IpSettings ipSettings)
    • form

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