- java.lang.Object
-
- swim.io.http.HttpSettings
-
- All Implemented Interfaces:
swim.codec.Debug
public class HttpSettings extends Object implements swim.codec.Debug
HTTP configuration parameters.
-
-
Field Summary
Fields Modifier and Type Field Description protected intmaxMessageSizeprotected swim.io.SocketSettingssocketSettings
-
Constructor Summary
Constructors Constructor Description HttpSettings(swim.io.SocketSettings socketSettings, int maxMessageSize)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanEqual(Object other)Returnstrueif theseHttpSettingscan possibly equal someotherobject.protected HttpSettingscopy(swim.io.SocketSettings socketSettings, int maxMessageSize)Returns a newHttpSettingsinstance with the given options.voiddebug(swim.codec.Output<?> output)booleanequals(Object other)static swim.structure.Form<HttpSettings>form()Returns the structuralFormofHttpSettings.static HttpSettingsfrom(swim.io.SocketSettings socketSettings)inthashCode()intmaxMessageSize()Returns the maximum size in bytes on the wire of an HTTP request or response message + entity.HttpSettingsmaxMessageSize(int maxMessageSize)Returns a copy of theseHttpSettingsconfigured with the givenmaxMessageSizelimit on HTTP message + entity sizes.swim.io.SocketSettingssocketSettings()Returns the socket configuration.HttpSettingssocketSettings(swim.io.SocketSettings socketSettings)Returns a copy of theseHttpSettingsconfigured with the givensocketSettings.static HttpSettingsstandard()Returns the defaultHttpSettingsinstance.swim.io.TcpSettingstcpSettings()Returns the TCP socket configuration.HttpSettingstcpSettings(swim.io.TcpSettings tcpSettings)Returns a copy of theseHttpSettingsconfigured with the giventcpSettings.swim.io.TlsSettingstlsSettings()Returns the TLS socket configuration.HttpSettingstlsSettings(swim.io.TlsSettings tlsSettings)Returns a copy of theseHttpSettingsconfigured with the giventlsSettings.StringtoString()swim.structure.ValuetoValue()Returns a structuralValuerepresenting theseHttpSettings.
-
-
-
Method Detail
-
socketSettings
public final swim.io.SocketSettings socketSettings()
Returns the socket configuration.
-
socketSettings
public HttpSettings socketSettings(swim.io.SocketSettings socketSettings)
Returns a copy of theseHttpSettingsconfigured with the givensocketSettings.
-
tcpSettings
public final swim.io.TcpSettings tcpSettings()
Returns the TCP socket configuration.
-
tcpSettings
public HttpSettings tcpSettings(swim.io.TcpSettings tcpSettings)
Returns a copy of theseHttpSettingsconfigured with the giventcpSettings.
-
tlsSettings
public final swim.io.TlsSettings tlsSettings()
Returns the TLS socket configuration.
-
tlsSettings
public HttpSettings tlsSettings(swim.io.TlsSettings tlsSettings)
Returns a copy of theseHttpSettingsconfigured with the giventlsSettings.
-
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 theseHttpSettingsconfigured with the givenmaxMessageSizelimit on HTTP message + entity sizes.
-
copy
protected HttpSettings copy(swim.io.SocketSettings socketSettings, int maxMessageSize)
Returns a newHttpSettingsinstance with the given options. Subclasses may override this method to ensure the proper class is instantiated when updating settings.
-
toValue
public swim.structure.Value toValue()
Returns a structuralValuerepresenting theseHttpSettings.
-
canEqual
public boolean canEqual(Object other)
Returnstrueif theseHttpSettingscan possibly equal someotherobject.
-
debug
public void debug(swim.codec.Output<?> output)
- Specified by:
debugin interfaceswim.codec.Debug
-
standard
public static HttpSettings standard()
Returns the defaultHttpSettingsinstance.
-
from
public static HttpSettings from(swim.io.SocketSettings socketSettings)
-
form
@Kind public static swim.structure.Form<HttpSettings> form()
Returns the structuralFormofHttpSettings.
-
-