- java.lang.Object
-
- swim.io.http.HttpSettings
-
-
Field Summary
Fields Modifier and Type Field Description protected IpSettingsipSettingsprotected intmaxMessageSize
-
Constructor Summary
Constructors Constructor Description HttpSettings(IpSettings ipSettings, int maxMessageSize)
-
Method Summary
Modifier and Type Method Description booleancanEqual(Object other)Returnstrueif theseHttpSettingscan possibly equal someotherobject.protected HttpSettingscopy(IpSettings ipSettings, int maxMessageSize)Returns a newHttpSettingsinstance with the given options.voiddebug(Output<?> output)Writes a developer readable, debug-formatted string representation of this object tooutput.booleanequals(Object other)static Form<HttpSettings>form()Returns the structuralFormofHttpSettings.static HttpSettingsfrom(IpSettings ipSettings)inthashCode()IpSettingsipSettings()Returns the socket configuration.HttpSettingsipSettings(IpSettings ipSettings)Returns a copy of theseHttpSettingsconfigured with the givenipSettings.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.static HttpSettingsstandard()Returns the defaultHttpSettingsinstance.TcpSettingstcpSettings()Returns the TCP socket configuration.HttpSettingstcpSettings(TcpSettings tcpSettings)Returns a copy of theseHttpSettingsconfigured with the giventcpSettings.TlsSettingstlsSettings()Returns the TLS socket configuration.HttpSettingstlsSettings(TlsSettings tlsSettings)Returns a copy of theseHttpSettingsconfigured with the giventlsSettings.StringtoString()ValuetoValue()Returns a structuralValuerepresenting theseHttpSettings.
-
-
-
Field Detail
-
ipSettings
protected final IpSettings ipSettings
-
maxMessageSize
protected final int maxMessageSize
-
-
Constructor Detail
-
HttpSettings
public HttpSettings(IpSettings ipSettings, int maxMessageSize)
-
-
Method Detail
-
standard
public static HttpSettings standard()
Returns the defaultHttpSettingsinstance.
-
from
public static HttpSettings from(IpSettings ipSettings)
-
form
@Kind public static Form<HttpSettings> form()
Returns the structuralFormofHttpSettings.
-
ipSettings
public final IpSettings ipSettings()
Returns the socket configuration.
-
ipSettings
public HttpSettings ipSettings(IpSettings ipSettings)
Returns a copy of theseHttpSettingsconfigured with the givenipSettings.
-
tcpSettings
public final TcpSettings tcpSettings()
Returns the TCP socket configuration.
-
tcpSettings
public HttpSettings tcpSettings(TcpSettings tcpSettings)
Returns a copy of theseHttpSettingsconfigured with the giventcpSettings.
-
tlsSettings
public final TlsSettings tlsSettings()
Returns the TLS socket configuration.
-
tlsSettings
public HttpSettings tlsSettings(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(IpSettings ipSettings, 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 Value toValue()
Returns a structuralValuerepresenting theseHttpSettings.
-
canEqual
public boolean canEqual(Object other)
Returnstrueif theseHttpSettingscan possibly equal someotherobject.
-
debug
public void debug(Output<?> output)
Description copied from interface:DebugWrites a developer readable, debug-formatted string representation of this object tooutput.
-
-