Package org.apache.http.config
Class SocketConfig
java.lang.Object
org.apache.http.config.SocketConfig
- All Implemented Interfaces:
Cloneable
Socket configuration.
- Since:
- 4.3
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionprotected SocketConfigclone()static SocketConfig.Buildercopy(SocketConfig config) static SocketConfig.Buildercustom()intDetermines the default value of theSocketOptions.SO_LINGERparameter for newly created sockets.intDetermines the default socket timeout value for non-blocking I/O operations.booleanDetermines the default value of theSocketOptions.SO_KEEPALIVEparameter for newly created sockets.booleanDetermines the default value of theSocketOptions.SO_REUSEADDRparameter for newly created sockets.booleanDetermines the default value of theSocketOptions.TCP_NODELAYparameter for newly created sockets.toString()
-
Field Details
-
DEFAULT
-
-
Method Details
-
getSoTimeout
public int getSoTimeout()Determines the default socket timeout value for non-blocking I/O operations. Default:0(no timeout)- See Also:
-
isSoReuseAddress
public boolean isSoReuseAddress()Determines the default value of theSocketOptions.SO_REUSEADDRparameter for newly created sockets. Default:false- See Also:
-
getSoLinger
public int getSoLinger()Determines the default value of theSocketOptions.SO_LINGERparameter for newly created sockets. Default:-1- See Also:
-
isSoKeepAlive
public boolean isSoKeepAlive()Determines the default value of theSocketOptions.SO_KEEPALIVEparameter for newly created sockets. Default:-1- See Also:
-
isTcpNoDelay
public boolean isTcpNoDelay()Determines the default value of theSocketOptions.TCP_NODELAYparameter for newly created sockets. Default:false- See Also:
-
clone
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
toString
-
custom
-
copy
-