Class DelegateSocket
java.lang.Object
java.net.Socket
software.amazon.awssdk.http.apache.internal.net.DelegateSocket
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
SdkSocket
Socket delegate class. Subclasses could extend this class, so that
they only need to override methods they are interested in enhancing.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbind(SocketAddress bindpoint) voidclose()voidconnect(SocketAddress endpoint) voidconnect(SocketAddress endpoint, int timeout) booleanintbooleanintgetPort()intbooleanintintintbooleanintbooleanisBound()booleanisClosed()booleanbooleanbooleanvoidsendUrgentData(int data) voidsetKeepAlive(boolean on) voidsetOOBInline(boolean on) voidsetPerformancePreferences(int connectionTime, int latency, int bandwidth) voidsetReceiveBufferSize(int size) voidsetReuseAddress(boolean on) voidsetSendBufferSize(int size) voidsetSoLinger(boolean on, int linger) voidsetSoTimeout(int timeout) voidsetTcpNoDelay(boolean on) voidsetTrafficClass(int tc) voidvoidtoString()Methods inherited from class java.net.Socket
setSocketImplFactory
-
Constructor Details
-
DelegateSocket
-
-
Method Details
-
connect
- Overrides:
connectin classSocket- Throws:
IOException
-
connect
- Overrides:
connectin classSocket- Throws:
IOException
-
bind
- Overrides:
bindin classSocket- Throws:
IOException
-
getInetAddress
- Overrides:
getInetAddressin classSocket
-
getLocalAddress
- Overrides:
getLocalAddressin classSocket
-
getPort
-
getLocalPort
public int getLocalPort()- Overrides:
getLocalPortin classSocket
-
getRemoteSocketAddress
- Overrides:
getRemoteSocketAddressin classSocket
-
getLocalSocketAddress
- Overrides:
getLocalSocketAddressin classSocket
-
getChannel
- Overrides:
getChannelin classSocket
-
getInputStream
- Overrides:
getInputStreamin classSocket- Throws:
IOException
-
getOutputStream
- Overrides:
getOutputStreamin classSocket- Throws:
IOException
-
setTcpNoDelay
- Overrides:
setTcpNoDelayin classSocket- Throws:
SocketException
-
getTcpNoDelay
- Overrides:
getTcpNoDelayin classSocket- Throws:
SocketException
-
setSoLinger
- Overrides:
setSoLingerin classSocket- Throws:
SocketException
-
getSoLinger
- Overrides:
getSoLingerin classSocket- Throws:
SocketException
-
sendUrgentData
- Overrides:
sendUrgentDatain classSocket- Throws:
IOException
-
setOOBInline
- Overrides:
setOOBInlinein classSocket- Throws:
SocketException
-
getOOBInline
- Overrides:
getOOBInlinein classSocket- Throws:
SocketException
-
setSoTimeout
- Overrides:
setSoTimeoutin classSocket- Throws:
SocketException
-
getSoTimeout
- Overrides:
getSoTimeoutin classSocket- Throws:
SocketException
-
setSendBufferSize
- Overrides:
setSendBufferSizein classSocket- Throws:
SocketException
-
getSendBufferSize
- Overrides:
getSendBufferSizein classSocket- Throws:
SocketException
-
setReceiveBufferSize
- Overrides:
setReceiveBufferSizein classSocket- Throws:
SocketException
-
getReceiveBufferSize
- Overrides:
getReceiveBufferSizein classSocket- Throws:
SocketException
-
setKeepAlive
- Overrides:
setKeepAlivein classSocket- Throws:
SocketException
-
getKeepAlive
- Overrides:
getKeepAlivein classSocket- Throws:
SocketException
-
setTrafficClass
- Overrides:
setTrafficClassin classSocket- Throws:
SocketException
-
getTrafficClass
- Overrides:
getTrafficClassin classSocket- Throws:
SocketException
-
setReuseAddress
- Overrides:
setReuseAddressin classSocket- Throws:
SocketException
-
getReuseAddress
- Overrides:
getReuseAddressin classSocket- Throws:
SocketException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classSocket- Throws:
IOException
-
shutdownInput
- Overrides:
shutdownInputin classSocket- Throws:
IOException
-
shutdownOutput
- Overrides:
shutdownOutputin classSocket- Throws:
IOException
-
toString
-
isConnected
public boolean isConnected()- Overrides:
isConnectedin classSocket
-
isBound
-
isClosed
-
isInputShutdown
public boolean isInputShutdown()- Overrides:
isInputShutdownin classSocket
-
isOutputShutdown
public boolean isOutputShutdown()- Overrides:
isOutputShutdownin classSocket
-
setPerformancePreferences
public void setPerformancePreferences(int connectionTime, int latency, int bandwidth) - Overrides:
setPerformancePreferencesin classSocket
-