- java.lang.Object
-
- swim.io.http.HttpSettings
-
-
Field Summary
Fields Modifier and Type Field Description protected IpSettings
ipSettings
protected int
maxMessageSize
-
Constructor Summary
Constructors Constructor Description HttpSettings(IpSettings ipSettings, int maxMessageSize)
-
Method Summary
Modifier and Type Method Description boolean
canEqual(Object other)
Returnstrue
if theseHttpSettings
can possibly equal someother
object.protected HttpSettings
copy(IpSettings ipSettings, int maxMessageSize)
Returns a newHttpSettings
instance with the given options.void
debug(Output<?> output)
Writes a developer readable, debug-formatted string representation of this object tooutput
.boolean
equals(Object other)
static Form<HttpSettings>
form()
Returns the structuralForm
ofHttpSettings
.static HttpSettings
from(IpSettings ipSettings)
int
hashCode()
IpSettings
ipSettings()
Returns the socket configuration.HttpSettings
ipSettings(IpSettings ipSettings)
Returns a copy of theseHttpSettings
configured with the givenipSettings
.int
maxMessageSize()
Returns the maximum size in bytes on the wire of an HTTP request or response message + entity.HttpSettings
maxMessageSize(int maxMessageSize)
Returns a copy of theseHttpSettings
configured with the givenmaxMessageSize
limit on HTTP message + entity sizes.static HttpSettings
standard()
Returns the defaultHttpSettings
instance.TcpSettings
tcpSettings()
Returns the TCP socket configuration.HttpSettings
tcpSettings(TcpSettings tcpSettings)
Returns a copy of theseHttpSettings
configured with the giventcpSettings
.TlsSettings
tlsSettings()
Returns the TLS socket configuration.HttpSettings
tlsSettings(TlsSettings tlsSettings)
Returns a copy of theseHttpSettings
configured with the giventlsSettings
.String
toString()
Value
toValue()
Returns a structuralValue
representing 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 defaultHttpSettings
instance.
-
from
public static HttpSettings from(IpSettings ipSettings)
-
form
@Kind public static Form<HttpSettings> form()
Returns the structuralForm
ofHttpSettings
.
-
ipSettings
public final IpSettings ipSettings()
Returns the socket configuration.
-
ipSettings
public HttpSettings ipSettings(IpSettings ipSettings)
Returns a copy of theseHttpSettings
configured with the givenipSettings
.
-
tcpSettings
public final TcpSettings tcpSettings()
Returns the TCP socket configuration.
-
tcpSettings
public HttpSettings tcpSettings(TcpSettings tcpSettings)
Returns a copy of theseHttpSettings
configured with the giventcpSettings
.
-
tlsSettings
public final TlsSettings tlsSettings()
Returns the TLS socket configuration.
-
tlsSettings
public HttpSettings tlsSettings(TlsSettings tlsSettings)
Returns a copy of theseHttpSettings
configured 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 theseHttpSettings
configured with the givenmaxMessageSize
limit on HTTP message + entity sizes.
-
copy
protected HttpSettings copy(IpSettings ipSettings, int maxMessageSize)
Returns a newHttpSettings
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 structuralValue
representing theseHttpSettings
.
-
canEqual
public boolean canEqual(Object other)
Returnstrue
if theseHttpSettings
can possibly equal someother
object.
-
debug
public void debug(Output<?> output)
Description copied from interface:Debug
Writes a developer readable, debug-formatted string representation of this object tooutput
.
-
-