- java.lang.Object
-
- swim.io.IpSettings
-
-
Field Summary
Fields Modifier and Type Field Description protected TcpSettings
tcpSettings
protected TlsSettings
tlsSettings
-
Constructor Summary
Constructors Constructor Description IpSettings(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 theseIpSettings
can possibly equal someother
object.void
configure(Socket socket)
Configures thesocket
with theseIpSettings
.protected IpSettings
copy(TcpSettings tcpSettings, TlsSettings tlsSettings)
Returns a newIpSettings
instance with the given options.static IpSettings
create(TcpSettings tcpSettings)
static IpSettings
create(TlsSettings tlsSettings)
<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<IpSettings>
form()
Returns the structuralForm
ofIpSettings
.int
hashCode()
static IpSettings
standard()
Returns the defaultIpSettings
instance.TcpSettings
tcpSettings()
Returns the TCP socket configuration.IpSettings
tcpSettings(TcpSettings tcpSettings)
Returns a copy of theseIpSettings
configured with the giventcpSettings
.TlsSettings
tlsSettings()
Returns the TLS socket configuration.IpSettings
tlsSettings(TlsSettings tlsSettings)
Returns a copy of theseIpSettings
configured with the giventlsSettings
.String
toString()
Value
toValue()
Returns a structuralValue
representing theseIpSettings
.
-
-
-
Field Detail
-
tcpSettings
protected final TcpSettings tcpSettings
-
tlsSettings
protected final TlsSettings tlsSettings
-
-
Constructor Detail
-
IpSettings
public IpSettings(TcpSettings tcpSettings, TlsSettings tlsSettings)
-
-
Method Detail
-
tcpSettings
public TcpSettings tcpSettings()
Returns the TCP socket configuration.
-
tcpSettings
public IpSettings tcpSettings(TcpSettings tcpSettings)
Returns a copy of theseIpSettings
configured with the giventcpSettings
.
-
tlsSettings
public TlsSettings tlsSettings()
Returns the TLS socket configuration.
-
tlsSettings
public IpSettings tlsSettings(TlsSettings tlsSettings)
Returns a copy of theseIpSettings
configured with the giventlsSettings
.
-
copy
protected IpSettings copy(TcpSettings tcpSettings, TlsSettings tlsSettings)
Returns a newIpSettings
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 theseIpSettings
.- Throws:
SocketException
-
toValue
public Value toValue()
Returns a structuralValue
representing theseIpSettings
.
-
canEqual
public boolean canEqual(Object other)
Returnstrue
if theseIpSettings
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 IpSettings standard()
Returns the defaultIpSettings
instance.
-
create
public static IpSettings create(TcpSettings tcpSettings)
-
create
public static IpSettings create(TlsSettings tlsSettings)
-
form
@Kind public static Form<IpSettings> form()
Returns the structuralForm
ofIpSettings
.
-
-