- java.lang.Object
-
- swim.io.IpSettings
-
-
Field Summary
Fields Modifier and Type Field Description protected TcpSettingstcpSettingsprotected TlsSettingstlsSettings
-
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 booleancanEqual(Object other)Returnstrueif theseIpSettingscan possibly equal someotherobject.voidconfigure(Socket socket)Configures thesocketwith theseIpSettings.protected IpSettingscopy(TcpSettings tcpSettings, TlsSettings tlsSettings)Returns a newIpSettingsinstance with the given options.static IpSettingscreate(TcpSettings tcpSettings)static IpSettingscreate(TlsSettings tlsSettings)<T> Output<T>debug(Output<T> output)Writes a developer readable, debug-formatted string representation of this object tooutput.booleanequals(Object other)static Form<IpSettings>form()Returns the structuralFormofIpSettings.inthashCode()static IpSettingsstandard()Returns the defaultIpSettingsinstance.TcpSettingstcpSettings()Returns the TCP socket configuration.IpSettingstcpSettings(TcpSettings tcpSettings)Returns a copy of theseIpSettingsconfigured with the giventcpSettings.TlsSettingstlsSettings()Returns the TLS socket configuration.IpSettingstlsSettings(TlsSettings tlsSettings)Returns a copy of theseIpSettingsconfigured with the giventlsSettings.StringtoString()ValuetoValue()Returns a structuralValuerepresenting 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 theseIpSettingsconfigured with the giventcpSettings.
-
tlsSettings
public TlsSettings tlsSettings()
Returns the TLS socket configuration.
-
tlsSettings
public IpSettings tlsSettings(TlsSettings tlsSettings)
Returns a copy of theseIpSettingsconfigured with the giventlsSettings.
-
copy
protected IpSettings copy(TcpSettings tcpSettings, TlsSettings tlsSettings)
Returns a newIpSettingsinstance 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 thesocketwith theseIpSettings.- Throws:
SocketException
-
toValue
public Value toValue()
Returns a structuralValuerepresenting theseIpSettings.
-
canEqual
public boolean canEqual(Object other)
Returnstrueif theseIpSettingscan possibly equal someotherobject.
-
debug
public <T> Output<T> debug(Output<T> output)
Description copied from interface:DebugWrites a developer readable, debug-formatted string representation of this object tooutput.
-
standard
public static IpSettings standard()
Returns the defaultIpSettingsinstance.
-
create
public static IpSettings create(TcpSettings tcpSettings)
-
create
public static IpSettings create(TlsSettings tlsSettings)
-
form
@Kind public static Form<IpSettings> form()
Returns the structuralFormofIpSettings.
-
-