- 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
All Methods Static Methods Instance Methods Concrete Methods 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.static HttpSettings
create(IpSettings ipSettings)
<T> Output<T>
debug(Output<T> 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
.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 + payload.HttpSettings
maxMessageSize(int maxMessageSize)
Returns a copy of theseHttpSettings
configured with the givenmaxMessageSize
limit on HTTP message + payload 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
-
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 + payload.
-
maxMessageSize
public HttpSettings maxMessageSize(int maxMessageSize)
Returns a copy of theseHttpSettings
configured with the givenmaxMessageSize
limit on HTTP message + payload 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 <T> Output<T> debug(Output<T> output)
Description copied from interface:Debug
Writes a developer readable, debug-formatted string representation of this object tooutput
.
-
standard
public static HttpSettings standard()
Returns the defaultHttpSettings
instance.
-
create
public static HttpSettings create(IpSettings ipSettings)
-
form
@Kind public static Form<HttpSettings> form()
Returns the structuralForm
ofHttpSettings
.
-
-