- java.lang.Object
-
- swim.io.SocketSettings
-
-
Field Summary
Fields Modifier and Type Field Description protected TcpSettings
tcpSettings
protected TlsSettings
tlsSettings
-
Constructor Summary
Constructors Constructor Description SocketSettings(TcpSettings tcpSettings, TlsSettings tlsSettings)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canEqual(Object other)
Returnstrue
if theseSocketSettings
can possibly equal someother
object.void
configure(Socket socket)
Configures thesocket
with theseSocketSettings
.protected SocketSettings
copy(TcpSettings tcpSettings, TlsSettings tlsSettings)
Returns a newSocketSettings
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<SocketSettings>
form()
Returns the structuralForm
ofSocketSettings
.static SocketSettings
from(TcpSettings tcpSettings)
static SocketSettings
from(TlsSettings tlsSettings)
int
hashCode()
static SocketSettings
standard()
Returns the defaultSocketSettings
instance.TcpSettings
tcpSettings()
Returns the TCP socket configuration.SocketSettings
tcpSettings(TcpSettings tcpSettings)
Returns a copy of theseSocketSettings
configured with the giventcpSettings
.TlsSettings
tlsSettings()
Returns the TLS socket configuration.SocketSettings
tlsSettings(TlsSettings tlsSettings)
Returns a copy of theseSocketSettings
configured with the giventlsSettings
.String
toString()
Value
toValue()
Returns a structuralValue
representing theseSocketSettings
.
-
-
-
Field Detail
-
tcpSettings
protected final TcpSettings tcpSettings
-
tlsSettings
protected final TlsSettings tlsSettings
-
-
Constructor Detail
-
SocketSettings
public SocketSettings(TcpSettings tcpSettings, TlsSettings tlsSettings)
-
-
Method Detail
-
tcpSettings
public TcpSettings tcpSettings()
Returns the TCP socket configuration.
-
tcpSettings
public SocketSettings tcpSettings(TcpSettings tcpSettings)
Returns a copy of theseSocketSettings
configured with the giventcpSettings
.
-
tlsSettings
public TlsSettings tlsSettings()
Returns the TLS socket configuration.
-
tlsSettings
public SocketSettings tlsSettings(TlsSettings tlsSettings)
Returns a copy of theseSocketSettings
configured with the giventlsSettings
.
-
copy
protected SocketSettings copy(TcpSettings tcpSettings, TlsSettings tlsSettings)
Returns a newSocketSettings
instance with the given options. Subclasses may override this method to ensure the proper class is instantiated when updating settings.
-
configure
public void configure(Socket socket) throws SocketException
Configures thesocket
with theseSocketSettings
.- Throws:
SocketException
-
toValue
public Value toValue()
Returns a structuralValue
representing theseSocketSettings
.
-
canEqual
public boolean canEqual(Object other)
Returnstrue
if theseSocketSettings
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
.
-
standard
public static SocketSettings standard()
Returns the defaultSocketSettings
instance.
-
from
public static SocketSettings from(TcpSettings tcpSettings)
-
from
public static SocketSettings from(TlsSettings tlsSettings)
-
form
@Kind public static Form<SocketSettings> form()
Returns the structuralForm
ofSocketSettings
.
-
-