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

Class HttpSettings

  • All Implemented Interfaces:
    Debug

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

      • ipSettings

        protected final IpSettings ipSettings
      • maxMessageSize

        protected final int maxMessageSize
    • Constructor Detail

      • HttpSettings

        public HttpSettings​(IpSettings ipSettings,
                            int maxMessageSize)
    • Method Detail

      • 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 + entity.
      • maxMessageSize

        public HttpSettings maxMessageSize​(int maxMessageSize)
        Returns a copy of these HttpSettings configured with the given maxMessageSize limit on HTTP message + entity 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.
      • hashCode

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

        public void debug​(Output<?> 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
      • standard

        public static HttpSettings standard()
        Returns the default HttpSettings instance.